mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-27 23:35:01 +00:00
Report landlord references whose portfolio UPRN is null 🟩
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
43a0977fce
commit
c9c9463ac3
1 changed files with 6 additions and 1 deletions
|
|
@ -25,4 +25,9 @@ class PropertyUprnLookup(UprnLookup):
|
|||
def null_uprn_references(self) -> List[str]:
|
||||
"""Landlord references present in the portfolio whose UPRN is null —
|
||||
surfaced so a load can report them (none expected; ADR-0064)."""
|
||||
raise NotImplementedError
|
||||
references = self._reader.references_for_portfolio(self._portfolio_id)
|
||||
return [
|
||||
ref.landlord_property_id
|
||||
for ref in references
|
||||
if ref.landlord_property_id is not None and ref.uprn is None
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue