Skip to content

Commit

Permalink
WP-821[APCD] Writing the required threshold to DB (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
chandra-tacc authored Dec 12, 2024
1 parent a444af3 commit 811ba56
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions apcd_cms/src/apps/utils/apcd_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])),
Expand All @@ -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)
Expand Down

0 comments on commit 811ba56

Please sign in to comment.