From 2fb14858ebaafe5285e19e2623c956e703da5faa Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Thu, 9 Apr 2026 17:17:41 +0100 Subject: [PATCH] reduced freshness down to 14 days --- backend/app/db/functions/epc_functions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/db/functions/epc_functions.py b/backend/app/db/functions/epc_functions.py index 90b2bd02..f43c270b 100644 --- a/backend/app/db/functions/epc_functions.py +++ b/backend/app/db/functions/epc_functions.py @@ -11,7 +11,7 @@ class EpcStoreService: Service layer for EPC data lookup and persistence. """ - FRESHNESS_DAYS = 30 # Upgraded to 30 days + FRESHNESS_DAYS = 14 # Upgraded to 14 days # status labels FRESH = "fresh" @@ -22,7 +22,7 @@ class EpcStoreService: def get_epc_for_uprn(cls, session: Session, uprn: int): """ Query EPC data for a given UPRN and return a dict describing: - - epc_api: only if within last 30 days + - epc_api: only if within last 21 days - epc_page: only if epc_api exists - status: 'fresh', 'expired', or 'missing' """