Clarify cleanup dry-run output
This commit is contained in:
@@ -88,6 +88,7 @@ def cleanup_demo_exports(
|
||||
"type_filtered_export_count": 0,
|
||||
"selected_export_count": 0,
|
||||
"deleted_export_count": 0,
|
||||
"candidate_exports": [],
|
||||
"candidate_files": [],
|
||||
"deleted_files": [],
|
||||
"missing_files": [],
|
||||
@@ -140,6 +141,13 @@ def cleanup_demo_exports(
|
||||
summary["pruned_dirs"].extend(prune_empty_parents(path, storage_root))
|
||||
summary["deleted_files"].append(str(path))
|
||||
else:
|
||||
summary["candidate_exports"].append(
|
||||
{
|
||||
"export_id": str(export.id),
|
||||
"export_type": str(getattr(export, "export_type", "")),
|
||||
"storage_path": str(path),
|
||||
}
|
||||
)
|
||||
summary["candidate_files"].append(str(path))
|
||||
else:
|
||||
summary["missing_files"].append({"export_id": str(export.id), "storage_path": str(path)})
|
||||
|
||||
Reference in New Issue
Block a user