Skip to content

Commit

Permalink
Update sql to include all older requests
Browse files Browse the repository at this point in the history
  • Loading branch information
milosdes committed Oct 24, 2023
1 parent 29c21bd commit a6a75d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def getonholdapplicationfeerequests(cls): # with the reminder date
SELECT * FROM (SELECT DISTINCT ON (requestid) requestid, updated_at, status FROM public."FOIRawRequests"
ORDER BY requestid ASC, version DESC) r
WHERE r.status = 'On-Hold - Application Fee'
AND r.updated_at::date BETWEEN NOW()::date - INTERVAL '35 DAY' AND NOW()::date + INTERVAL '1 DAY'
AND r.updated_at::date < NOW()::date - INTERVAL '15 DAY'
order by r.updated_at asc
'''
rs = db.session.execute(text(sql))
Expand Down

0 comments on commit a6a75d7

Please sign in to comment.