Skip to content

Commit

Permalink
Fix check for uniqueness
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelma committed Feb 2, 2024
1 parent 0bc2aac commit 05e0beb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spinedb_api/db_mapping_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ def add_item_from_db(self, item):
tuple(MappedItem,bool): The mapped item and whether it hadn't been added before.
"""
current = self.find_item_by_id(item["id"], fetch=False) or self.find_item_by_unique_key(
item, fetch=False, complete=False
item, fetch=False, complete=True
)
if current:
if current.status == Status.to_add:
Expand Down

0 comments on commit 05e0beb

Please sign in to comment.