在前后端开发联调前 的提交20260223
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user