From 656bbc68768b7032b205862bcaa081f6d813223d Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Tue, 24 May 2022 12:46:46 +0300 Subject: Pass secend arg to cursor.execute as a tuple --- wqflask/wqflask/metadata_edits.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wqflask/wqflask/metadata_edits.py b/wqflask/wqflask/metadata_edits.py index 1a4d6f8d..8b3fd861 100644 --- a/wqflask/wqflask/metadata_edits.py +++ b/wqflask/wqflask/metadata_edits.py @@ -797,7 +797,7 @@ def reject_case_attribute_data(): cursor.execute( "UPDATE caseattributes_audit SET " "status = 'rejected' WHERE id = %s", - case_attr_id + (case_attr_id, ) ) except Exception as _e: import MySQLdb -- cgit v1.2.3