Skip to content

Commit

Permalink
sql syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
ehigham committed Jul 31, 2024
1 parent 7a3a33c commit e012bb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions batch/batch/driver/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1518,7 +1518,7 @@ async def compact(tx: Transaction, record: dict):
await tx.just_execute(
f"""\
DELETE FROM job_group_inst_coll_cancellable_resources
WHERE {'AND'.join([f'{k} = %s' for k in keyfields])};
WHERE {' AND '.join([f'{k} = %s' for k in keyfields])};
""",
[record[k] for k in keyfields],
)
Expand Down Expand Up @@ -1613,7 +1613,7 @@ async def delete_dead_job_group_cancellable_resources_records(db: Database):
await db.just_execute(
f"""\
DELETE FROM job_group_inst_coll_cancellable_resources
WHERE {'AND'.join([f'{k} = %s' for k in keyfields])};
WHERE {' AND '.join([f'{k} = %s' for k in keyfields])};
""",
[target[k] for k in keyfields],
)
Expand Down

0 comments on commit e012bb0

Please sign in to comment.