mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-27 23:35:01 +00:00
Use the fetched gov cert when it is the newer assessment 🟩
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
22bd0eadbe
commit
dd1ea99c3d
1 changed files with 2 additions and 0 deletions
|
|
@ -393,6 +393,8 @@ def _newer_lodged(
|
|||
"""ADR-0001 Recency Tie-Break over the two lodged sources. Returns
|
||||
(chosen, chosen_is_fetched) — the bool gates the EPC save, so a stored EPC
|
||||
that wins is never re-persisted."""
|
||||
if fetched is not None and fetched.inspection_date > stored.inspection_date:
|
||||
return fetched, True
|
||||
return stored, False
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue