在前后端开发联调前 的提交20260223

This commit is contained in:
Neo
2026-02-23 23:02:20 +08:00
parent 254ccb1e77
commit fafc95e64c
1142 changed files with 10366960 additions and 36957 deletions

View File

@@ -592,9 +592,15 @@ def run_dwd_vs_ods_check(
def _default_report_path(prefix: str) -> Path:
root = Path(__file__).resolve().parents[1]
env_root = os.environ.get("ETL_REPORT_ROOT")
if not env_root:
raise KeyError(
"环境变量 ETL_REPORT_ROOT 未定义。"
"请在根 .env 中配置,参考 docs/deployment/EXPORT-PATHS.md"
)
root = Path(env_root)
stamp = datetime.now().strftime("%Y%m%d_%H%M%S")
return root / "reports" / f"{prefix}_{stamp}.json"
return root / f"{prefix}_{stamp}.json"
def run_integrity_window(