Added more example data

This commit is contained in:
Profitroll 2023-04-27 11:53:28 +02:00
parent f8a841f90d
commit 007f3420b8
5 changed files with 1179 additions and 1173 deletions

5
.gitignore vendored
View File

@ -157,12 +157,15 @@ config.json
data/* data/*
!data/example.json !data/example.json
!data/default_example.json
configs/* configs/*
!configs/example.json !configs/example.json
templates/* templates/*
!templates/example.json !templates/example.docx
output/*
*.code-workspace *.code-workspace

1172
data/default_example.json Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -24,6 +24,8 @@ def main():
location_birth = None location_birth = None
for alt_name in data["header"]["birth_place"]["alternateNames"]: for alt_name in data["header"]["birth_place"]["alternateNames"]:
if "lang" not in alt_name:
continue
if alt_name["lang"] == lang: if alt_name["lang"] == lang:
location_birth = alt_name["name"] location_birth = alt_name["name"]
break break

BIN
templates/example.docx Normal file

Binary file not shown.