Skip to content

Commit

Permalink
Import relation with ID
Browse files Browse the repository at this point in the history
  • Loading branch information
gythaogg committed Apr 23, 2024
1 parent 1031518 commit bea801d
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 bea801d

Please sign in to comment.