From 811ba5661f9175434a0f71536f05cd1fc8df1847 Mon Sep 17 00:00:00 2001 From: Chandra Y Date: Thu, 12 Dec 2024 10:20:25 -0600 Subject: [PATCH] WP-821[APCD] Writing the required threshold to DB (#403) --- apcd_cms/src/apps/utils/apcd_database.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apcd_cms/src/apps/utils/apcd_database.py b/apcd_cms/src/apps/utils/apcd_database.py index 42c0666c..09de3ec8 100644 --- a/apcd_cms/src/apps/utils/apcd_database.py +++ b/apcd_cms/src/apps/utils/apcd_database.py @@ -808,8 +808,9 @@ def create_threshold_exception(form, exception, sub_data): field_number, requested_threshold, explanation_justification, - status - ) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) + status, + required_threshold + ) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) """ values = ( _clean_value(int(exception['businessName'])), @@ -824,7 +825,8 @@ def create_threshold_exception(form, exception, sub_data): _clean_value(exception['fieldCode']), _clean_value(exception['requested_threshold']), _clean_value(form['justification']), - "pending" + "pending", + _clean_value((exception['required_threshold'])) ) cur = conn.cursor() cur.execute(operation, values)