diff --git a/backend/documents_parser/extractor.py b/backend/documents_parser/extractor.py index 5ab09c93..822f7907 100644 --- a/backend/documents_parser/extractor.py +++ b/backend/documents_parser/extractor.py @@ -415,12 +415,17 @@ class PasHubRdSapSiteNotesExtractor: if batteries_raw is None or batteries_raw.lower() == "none" else int(batteries_raw) ) + pv_connection = self._get_in(r_section, "PV Connection:") + percent_raw = self._get_in(r_section, "Percentage of roof covered with photovoltaic array?") + percent_roof = int(percent_raw.split()[0]) if percent_raw else None return Renewables( wind_turbines=self._bool_in(r_section, "Has wind turbines?"), solar_hot_water=self._bool_in(r_section, "Has solar hot water?"), photovoltaic_array=self._bool_in(r_section, "Has photovoltaic array?"), number_of_pv_batteries=batteries, hydro=self._bool_in(r_section, "Is the dwelling connected to Hydro?"), + pv_connection=pv_connection, + percent_roof_covered_pv=percent_roof, ) def extract_room_count_elements(self) -> RoomCountElements: