From a6a75d7c98d58a4e572b0f6790da1940889a8726 Mon Sep 17 00:00:00 2001 From: Milos Despotovic Date: Tue, 24 Oct 2023 15:10:41 -0700 Subject: [PATCH] Update sql to include all older requests --- request-management-api/request_api/models/FOIRawRequests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/request-management-api/request_api/models/FOIRawRequests.py b/request-management-api/request_api/models/FOIRawRequests.py index bbe7c1118..91eb206b6 100644 --- a/request-management-api/request_api/models/FOIRawRequests.py +++ b/request-management-api/request_api/models/FOIRawRequests.py @@ -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))