mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
reduced freshness down to 14 days
This commit is contained in:
parent
fbf23bc898
commit
2fb14858eb
1 changed files with 2 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ class EpcStoreService:
|
||||||
Service layer for EPC data lookup and persistence.
|
Service layer for EPC data lookup and persistence.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
FRESHNESS_DAYS = 30 # Upgraded to 30 days
|
FRESHNESS_DAYS = 14 # Upgraded to 14 days
|
||||||
|
|
||||||
# status labels
|
# status labels
|
||||||
FRESH = "fresh"
|
FRESH = "fresh"
|
||||||
|
|
@ -22,7 +22,7 @@ class EpcStoreService:
|
||||||
def get_epc_for_uprn(cls, session: Session, uprn: int):
|
def get_epc_for_uprn(cls, session: Session, uprn: int):
|
||||||
"""
|
"""
|
||||||
Query EPC data for a given UPRN and return a dict describing:
|
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
|
- epc_page: only if epc_api exists
|
||||||
- status: 'fresh', 'expired', or 'missing'
|
- status: 'fresh', 'expired', or 'missing'
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue