Added more example data
This commit is contained in:
parent
f8a841f90d
commit
007f3420b8
5
.gitignore
vendored
5
.gitignore
vendored
@ -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
1172
data/default_example.json
Normal file
File diff suppressed because it is too large
Load Diff
1173
data/example.json
1173
data/example.json
File diff suppressed because it is too large
Load Diff
2
main.py
2
main.py
@ -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
BIN
templates/example.docx
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user