From c9c9463ac3b9fa6a5e3843b57b6b4a0d975ed7ad Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Mon, 13 Jul 2026 15:06:05 +0000 Subject: [PATCH] =?UTF-8?q?Report=20landlord=20references=20whose=20portfo?= =?UTF-8?q?lio=20UPRN=20is=20null=20=F0=9F=9F=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 (1M context) --- repositories/condition/property_uprn_lookup.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/repositories/condition/property_uprn_lookup.py b/repositories/condition/property_uprn_lookup.py index cf2b2a344..8a01b8c29 100644 --- a/repositories/condition/property_uprn_lookup.py +++ b/repositories/condition/property_uprn_lookup.py @@ -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 + ]