updated scan.py to help us error handle the weird searches and alos build an ignore list

This commit is contained in:
2026-07-09 16:21:20 -05:00
parent 041ffd1c3f
commit 60cc36893e
6 changed files with 60 additions and 4 deletions

View File

@@ -354,6 +354,7 @@ def main():
paths = {
"drawer_id_file": cfg.get("paths", "drawer_id_file"),
"completed_file": cfg.get("paths", "completed_file"),
"ignore_file": cfg.get("paths", "ignore_file"),
"screenshot_dir": cfg.get("paths", "screenshot_dir"),
"manifest_dir": cfg.get("paths", "manifest_dir"),
}
@@ -391,10 +392,12 @@ def main():
sys.exit(1)
completed = load_completed(paths["completed_file"])
ignored = set(load_lines(paths["ignore_file"]))
pending = [d for d in all_ids if d not in completed]
pending = [d for d in all_ids if d not in completed and d not in ignored]
log(f"Total drawers in list : {len(all_ids)}")
log(f"Already completed : {len(completed)}")
log(f"Ignored (skipped) : {len(ignored & set(all_ids))}")
log(f"Remaining to process : {len(pending)}")
if not pending: