Skip to content

Commit

Permalink
WP-854 Updating Applicable Period Fetch Business Logic (#419)
Browse files Browse the repository at this point in the history
* updating query where applicable data periods are fetched from submitter calendar to reflect correction in business logic

* Update apcd_cms/src/apps/utils/apcd_database.py

---------

Co-authored-by: Chandra Y <[email protected]>
  • Loading branch information
happycodemonkey and chandra-tacc authored Feb 4, 2025
1 parent 813a4ed commit 82a2b3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apcd_cms/src/apps/utils/apcd_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -1219,7 +1219,7 @@ def get_applicable_data_periods(submitter_id):
sslmode='require',
)
cur = conn.cursor()
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 """
query = """ SELECT distinct data_period_start FROM submitter_calendar WHERE submitter_id = (%s) AND cancelled = 'FALSE' AND granted_reprieve='FALSE' AND submission_id is NOT NULL """
cur.execute(query, (submitter_id,))
return cur.fetchall()

Expand Down

0 comments on commit 82a2b3b

Please sign in to comment.