fix(import): remap Kazuya DOB and correct parents using Stammbaum von Kazuya.xlsx
Some checks failed
CI / Backend Tests (.NET) (push) Successful in 1m4s
CI / Docker Build & Push (push) Has been cancelled
CI / Frontend Tests (Node/Vite) (push) Has been cancelled

This commit is contained in:
2026-06-21 22:18:04 +02:00
parent 4cb39cb180
commit d2993418b6
3 changed files with 39 additions and 5 deletions

View File

@@ -999,6 +999,25 @@ def apply_conflict_decisions(merged, conflicts, path):
a["farbschlagVariants"] = [d["farbschlag"]]
if d.get("dateOfDeath"): # D5 death-date resolutions
a["death"] = norm_dob(d["dateOfDeath"])
if "father" in d or "mother" in d:
new_refs = []
if d.get("father"):
new_refs.append({
"name": d["father"],
"dob": "",
"roleGuess": "father",
"method": "decision",
"confidence": "high"
})
if d.get("mother"):
new_refs.append({
"name": d["mother"],
"dob": "",
"roleGuess": "mother",
"method": "decision",
"confidence": "high"
})
a["parentRefs"] = new_refs
if a.get("conflict"):
a["conflict"] = False
conflicts[:] = [c for c in conflicts if c.get("id") != a["id"]]