Model/repositories/epc
Daniel Roth c9cb59ea78 Break lodged-UPRN duplicates by latest inspection_date, then id
inspection_date is non-null on epc_property, so it is a better winner for
a shared-UPRN collision than insertion order: the latest-surveyed lodged
row wins. id DESC stays as the deterministic secondary, so a same-UPRN,
same-inspection_date tie falls to the highest id.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-14 10:46:01 +00:00
..
__init__.py feat(epc): EPC persistence round-trip fidelity + JSONB code columns (Slice 1 #1129) 2026-05-30 19:26:18 +00:00
epc_postgres_repository.py Break lodged-UPRN duplicates by latest inspection_date, then id 2026-07-14 10:46:01 +00:00
epc_repository.py Fetch a property's lodged EPC by UPRN, not property_id 2026-07-14 10:35:51 +00:00