From 32978030c3d3d09e91fb4304ad2181bf546c4201 Mon Sep 17 00:00:00 2001 From: Sam Rolfe Date: Sat, 8 Aug 2026 14:59:42 +1000 Subject: [PATCH] Fix near-dup blocking registration: flag near-dups but always register (phone burst shots were falsely flagged); verified on phone_dumps (104 files, 0 missing) --- photo_ingest.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/photo_ingest.py b/photo_ingest.py index 079768f..c684c49 100644 --- a/photo_ingest.py +++ b/photo_ingest.py @@ -92,13 +92,12 @@ def check_and_register(image_paths: list[str], source: str) -> dict: if match: exact_dups.append((p_str, match[0])) continue - # near dup by perceptual hash + # near dup by perceptual hash — FLAG but DO NOT skip (review decides) hx = db.hash_image(p) near, dist = db._near_dup_lookup(conn, hx) if near and dist <= 10: near_dups.append((p_str, near, dist)) - continue - # new — register + # register regardless (near-dup is a review hint, not a block) with Image.open(p) as im: w, h = im.size conn.execute(