We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents acaa022 + 8feea5d commit d3a9cf2Copy full SHA for d3a9cf2
1 file changed
backend/maint-scripts/populate_cms_database.py
@@ -374,6 +374,10 @@ def process_zim_file(
374
# Calculate relative path within warehouse
375
zim_path_in_warehouse = zim_file.relative_to(warehouse_path)
376
377
+ if zim_file.with_suffix(".delete").exists():
378
+ logger.info(f"Ignoring ZIM marked for deletion: {zim_path_in_warehouse}")
379
+ return
380
+
381
logger.info(f"Processing: {zim_path_in_warehouse}")
382
383
# Check if book already exists at this location
0 commit comments