Skip to content

Commit

Permalink
Updated due soon requests queries to sort by id
Browse files Browse the repository at this point in the history
  • Loading branch information
johnyu95 committed Oct 6, 2023
1 parent 25db3be commit c632d8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def _update_request_statuses():
Requests.status != request_status.CLOSED,
Requests.agency_ein == agency_ein
).order_by(
Requests.due_date.asc()
Requests.id.asc()
).all()

# Query for all acknowledged due soon requests
Expand All @@ -88,7 +88,7 @@ def _update_request_statuses():
Requests.agency_ein == agency_ein,
Determinations.dtype == determination_type.ACKNOWLEDGMENT
).order_by(
Requests.due_date.asc()
Requests.id.asc()
).all()

# Get the difference for all unacknowledged due soon requests
Expand Down

0 comments on commit c632d8c

Please sign in to comment.