mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
extract no extensions 🟩
This commit is contained in:
parent
da26e4a4cb
commit
0976088cc9
1 changed files with 3 additions and 1 deletions
|
|
@ -140,6 +140,8 @@ class PasHubRdSapSiteNotesExtractor:
|
|||
|
||||
storeys_raw = self._get_in_doc("Number of storeys:") or "0"
|
||||
extensions_raw = self._get_in_doc("Number of Extensions:") or "0"
|
||||
_extensions_first = extensions_raw.split()[0]
|
||||
extensions_count = int(_extensions_first) if _extensions_first.isdigit() else 0
|
||||
|
||||
return General(
|
||||
epc_checked_before_assessment=self._bool(
|
||||
|
|
@ -155,7 +157,7 @@ class PasHubRdSapSiteNotesExtractor:
|
|||
detachment_type=self._get_in_doc("Detachment Type:") or "",
|
||||
number_of_storeys=int(storeys_raw.split()[0]),
|
||||
terrain_type=self._get_in_doc("Terrain Type:") or "",
|
||||
number_of_extensions=int(extensions_raw.split()[0]),
|
||||
number_of_extensions=extensions_count,
|
||||
electricity_smart_meter=self._bool(
|
||||
"Is an electricity smart meter present?"
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue