mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
debuggin secondary heating code
This commit is contained in:
parent
a30ad1762a
commit
98ae672a61
1 changed files with 2 additions and 1 deletions
|
|
@ -472,7 +472,8 @@ def extract_epr(pdf_path):
|
|||
if data["Existing Secondary Heating System"] == "":
|
||||
data["Secondary Heating Code"] = ""
|
||||
else:
|
||||
data["Secondary Heating Code"] = secondary_heating_code_match.group(1).strip()
|
||||
data["Secondary Heating Code"] = secondary_heating_code_match.group(
|
||||
1).strip() if secondary_heating_code_match else ""
|
||||
data["Water Heating Code"] = water_heating_code_match.group(1).strip()
|
||||
|
||||
# Extract Windows information
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue