fix(import): align child-parent pedigree mapping by using name cell row for vertical alignment
Some checks failed
CI / Backend Tests (.NET) (push) Successful in 1m9s
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:11:53 +02:00
parent b53b8cf2ff
commit 4cb39cb180
3 changed files with 19 additions and 5 deletions

View File

@@ -211,6 +211,7 @@ def extract_stammbaum(path):
if not compact and not is_block_dob:
continue
name_row = r
if compact:
name = clean_name(compact.group(1))
dob, death, geno = parse_detail(t)
@@ -225,6 +226,7 @@ def extract_stammbaum(path):
if (c, rr) in cells and not re.match(r"^\*?\s?\d", cells[(c, rr)]) \
and not gt.looks_like_genotype(cells[(c, rr)]):
name = clean_name(cells[(c, rr)])
name_row = rr
used.add((c, rr))
break
farbschlag = ""
@@ -275,7 +277,7 @@ def extract_stammbaum(path):
"sourceFiles": [fname],
"_gen": gen_of(c, col_offset),
"_col": c,
"_row": r,
"_row": name_row,
"_file": fname,
"_zucht": norm_zucht(zraw),
})