Skip to content

Commit

Permalink
fixup! nit re #10541, clarify label/new label types
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Feb 20, 2024
1 parent a690adf commit f7467fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arches/app/views/controlled_lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def handle_items(itemDicts):
for label in labels:
label["language_id"] = label.pop("language")
label["value_type_id"] = label.pop("valuetype")
label.pop("item_id") # trust the item, not the label
labels_to_save.append(
ControlledListItemLabel(item_id=item_to_save.id, **label)
)
Expand Down

0 comments on commit f7467fd

Please sign in to comment.