From 8b4b345f7a7c49c4693f22df5c935a7111d7ccc9 Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Tue, 21 Apr 2026 15:17:34 +0000 Subject: [PATCH] =?UTF-8?q?extract=20renewables=20pv=20connection=20?= =?UTF-8?q?=F0=9F=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/documents_parser/extractor.py | 5 +++++ 1 file changed, 5 insertions(+) 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: