Skip to content

Commit

Permalink
fix(management): skip uri 60485
Browse files Browse the repository at this point in the history
See #10
  • Loading branch information
b1rger committed May 13, 2024
1 parent 5375dce commit 99e963e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apis_ontology/management/commands/import.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,10 @@ def import_entities(entities=[]):

print("Uris...")
for uri_id, uri in list((k, v) for k, v in uris.items() if v["entity"] in result_ids):
uriobj, _ = Uri.objects.get_or_create(uri=uri["uri"])
# see https://github.com/acdh-oeaw/apis-instance-oebl-pnp/issues/10
if uri_id == 60485:
continue
uriobj, _ = Uri.objects.get_or_create(id=uri_id) #, uri=uri["uri"])
for attribute in uri:
setattr(uriobj, attribute, uri[attribute])
uriobj.save()
Expand Down

0 comments on commit 99e963e

Please sign in to comment.