Skip to content

Commit

Permalink
Merge pull request #8 from acdh-oeaw/bugfix-import-rels-with-id
Browse files Browse the repository at this point in the history
Import relation with ID
  • Loading branch information
gythaogg authored Apr 23, 2024
2 parents 1031518 + bea801d commit 2b2a3e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apis_ontology/management/commands/import_relations.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def get_subj_obj_data(pk):

for _, row in tqdm(self.df.iterrows(), total=self.df.shape[0]):

field_values = {**row.fields} # "id": row.pk,
field_values = {"id": row.pk, **row.fields} #
subj_obj_data = get_subj_obj_data(row.pk)
field_values["subj"], field_values["obj"] = subj_obj_data
if not (field_values["subj"] and field_values["obj"]):
Expand Down

0 comments on commit 2b2a3e5

Please sign in to comment.