Skip to content

Commit

Permalink
Debug for psycopg2.errors.SyntaxError
Browse files Browse the repository at this point in the history
  • Loading branch information
paulstretenowich committed Feb 7, 2024
1 parent 0e725c3 commit 00ce47d
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 00ce47d

Please sign in to comment.