From 26bbbf2c763593ee9931bca51a48905de9674b0e Mon Sep 17 00:00:00 2001 From: Chandra Y Date: Fri, 9 Feb 2024 10:35:09 -0600 Subject: [PATCH] WP-483 - fixes for extensions (#268) --- .../extension_submission_form/extension_form_success.html | 2 +- apcd-cms/src/apps/utils/apcd_database.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apcd-cms/src/apps/extension/templates/extension_submission_form/extension_form_success.html b/apcd-cms/src/apps/extension/templates/extension_submission_form/extension_form_success.html index a786cd2c..7394bf76 100644 --- a/apcd-cms/src/apps/extension/templates/extension_submission_form/extension_form_success.html +++ b/apcd-cms/src/apps/extension/templates/extension_submission_form/extension_form_success.html @@ -8,6 +8,6 @@

Request to Submit Extension

Your extension submission was successful.

- Go Back to Extensions + Go to Dashboard {% endblock %} diff --git a/apcd-cms/src/apps/utils/apcd_database.py b/apcd-cms/src/apps/utils/apcd_database.py index 17b97adf..ddb16e22 100644 --- a/apcd-cms/src/apps/utils/apcd_database.py +++ b/apcd-cms/src/apps/utils/apcd_database.py @@ -1278,7 +1278,7 @@ def get_applicable_data_periods(submitter_id): sslmode='require', ) cur = conn.cursor() - query = """ SELECT data_period_start FROM submitter_calendar WHERE submitter_id = (%s) AND cancelled = 'FALSE' AND granted_reprieve='FALSE' AND submission_id is Null """ + query = """ SELECT distinct data_period_start FROM submitter_calendar WHERE submitter_id = (%s) AND cancelled = 'FALSE' AND granted_reprieve='FALSE' AND submission_id is Null """ cur.execute(query, (submitter_id,)) return cur.fetchall()