Clarify demo cleanup dry-run output
GeoIntel CI / docs-smoke (push) Has been cancelled
GeoIntel CI / contract-smoke (push) Has been cancelled

This commit is contained in:
Codex
2026-06-17 01:50:26 +02:00
parent 6bf0610147
commit 2d4e6bd8b6
3 changed files with 16 additions and 3 deletions
+4 -1
View File
@@ -69,6 +69,7 @@ def cleanup_demo_exports(project_name: str, keep_latest: int, apply: bool) -> di
"matched_export_count": 0,
"selected_export_count": 0,
"deleted_export_count": 0,
"candidate_files": [],
"deleted_files": [],
"missing_files": [],
"skipped_outside_storage": [],
@@ -109,7 +110,9 @@ def cleanup_demo_exports(project_name: str, keep_latest: int, apply: bool) -> di
if apply:
path.unlink()
summary["pruned_dirs"].extend(prune_empty_parents(path, storage_root))
summary["deleted_files"].append(str(path))
summary["deleted_files"].append(str(path))
else:
summary["candidate_files"].append(str(path))
else:
summary["missing_files"].append({"export_id": str(export.id), "storage_path": str(path)})