diff --git a/applications/condition/load_report.py b/applications/condition/load_report.py index eedba9c78..bf0f2fc73 100644 --- a/applications/condition/load_report.py +++ b/applications/condition/load_report.py @@ -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, + )