Skip to content

Commit

Permalink
Adjust interval to match business days
Browse files Browse the repository at this point in the history
  • Loading branch information
milosdes committed Oct 24, 2023
1 parent 544c79a commit 0343476
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def getonholdapplicationfeerequests(cls): # with the reminder date
onholdapplicationfeerequests = []
try:
sql = '''
SELECT * FROM (SELECT DISTINCT ON (requestid) requestid, (updated_at + INTERVAL '20 days') as reminder_date, status FROM public."FOIRawRequests"
SELECT * FROM (SELECT DISTINCT ON (requestid) requestid, (updated_at + INTERVAL '28 days') as reminder_date, status FROM public."FOIRawRequests"
ORDER BY requestid ASC, version DESC) r
WHERE r.status = 'On-Hold - Application Fee'
and r.reminder_date::date = now()::date
Expand Down

0 comments on commit 0343476

Please sign in to comment.