Skip to content

Commit

Permalink
fix: rename attributes in import script
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Apr 12, 2024
1 parent 7edad5f commit bf18e51
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apis_ontology/management/commands/import.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ def import_entities(entities=[]):
nextpage = data['next']
for result in data["results"]:
print(result["url"])
if entitymodel is Person:
result["surname"] = result["name"]
result["forename"] = result["first_name"]
if entitymodel == Place:
result["label"] = result["name"]
result_id = result["id"]
Expand Down

0 comments on commit bf18e51

Please sign in to comment.