Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions backend/maint-scripts/populate_cms_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,10 @@ def process_zim_file(
# Calculate relative path within warehouse
zim_path_in_warehouse = zim_file.relative_to(warehouse_path)

if zim_file.with_suffix(".delete").exists():
logger.info(f"Ignoring ZIM marked for deletion: {zim_path_in_warehouse}")
return

logger.info(f"Processing: {zim_path_in_warehouse}")

# Check if book already exists at this location
Expand Down
Loading