Skip to content

Commit

Permalink
Merge pull request #33 from c3g/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
poquirion authored Feb 7, 2024
2 parents abacbbb + 9893372 commit 14f42ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project_tracking/db_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def unique_constraint_error(session, json_format, ingest_data):
readset_name = readset_json[vb.READSET_NAME]
stmt = (
select(Readset)
.where(Readset.name.is_(readset_name))
.where(Readset.name == readset_name)
)
if session.scalars(stmt).unique().all():
ret.append(f"'Readset' with 'name' '{readset_name}' already exists in the database and 'name' has to be unique")
Expand Down

0 comments on commit 14f42ff

Please sign in to comment.