From e431c50347f4ddd5915a2931ff6e5c753305023d Mon Sep 17 00:00:00 2001 From: Gulum Date: Sat, 6 Jun 2026 07:28:45 +0200 Subject: [PATCH] FEAT-8c: mark conflict animals in animals.json for the API loader Adds a machine-readable conflict:bool to each merged animal (true when files disagree on genotype/farbschlag/death) so the import loader can quarantine the 32 conflicts without parsing the German review report. --- tools/import/extract.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/import/extract.py b/tools/import/extract.py index 9221b8c..4cfabcf 100644 --- a/tools/import/extract.py +++ b/tools/import/extract.py @@ -554,10 +554,14 @@ def dedup(animals): "photos": sorted(set(photos)), "sourceFiles": sorted(files), "mentions": len(grp), + # FEAT-8c: machine-readable quarantine marker so the API loader can skip + # conflicting records without parsing the German review report. + "conflict": False, } merged.append(out) # conflict: same animal, disagreeing genotype or farbschlag or death if len(genos) > 1 or len(farb) > 1 or len(deaths) > 1: + out["conflict"] = True conflicts.append({ "id": out["id"], "name": base["name"], "dob": out["dob"], "genotypes": sorted(genos), "farbschlaege": sorted(farb),