mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-27 23:35:01 +00:00
Summarise a Calico load as a four-count reconciliation report 🟩
LoadReport.from_calico_load reports loaded observations alongside the three drop reasons (unmatched-to-portfolio, null-uprn, blank-placeholder) so every Calico row is accounted for. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
87eecc6400
commit
75c561e9db
1 changed files with 7 additions and 1 deletions
|
|
@ -22,4 +22,10 @@ class LoadReport:
|
|||
unmatched_reference_count: int,
|
||||
null_uprn_references: List[str],
|
||||
) -> "LoadReport":
|
||||
raise NotImplementedError
|
||||
loaded = sum(len(prop.assets) for prop in properties)
|
||||
return cls(
|
||||
loaded=loaded,
|
||||
unmatched_to_portfolio=unmatched_reference_count,
|
||||
null_uprn=len(null_uprn_references),
|
||||
blank_placeholder=blank_placeholder_count,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue