fix(import): remap Kazuya DOB and correct parents using Stammbaum von Kazuya.xlsx
This commit is contained in:
@@ -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"]]
|
||||
|
||||
Reference in New Issue
Block a user