From 7a3a33c586519149d9662ce30245c8cb31c588c0 Mon Sep 17 00:00:00 2001 From: Edmund Higham Date: Wed, 31 Jul 2024 13:13:18 -0400 Subject: [PATCH] sql syntax error --- batch/batch/driver/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/batch/batch/driver/main.py b/batch/batch/driver/main.py index 2a2565d7bc5..552e9630f13 100644 --- a/batch/batch/driver/main.py +++ b/batch/batch/driver/main.py @@ -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 {','.join([f'{k} = %s' for k in keyfields])}; +WHERE {'AND'.join([f'{k} = %s' for k in keyfields])}; """, [target[k] for k in keyfields], )