mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
additional fields mapped from pdf 4 🟩
This commit is contained in:
parent
c5c3f3fc83
commit
e272a39380
2 changed files with 6 additions and 3 deletions
|
|
@ -1557,10 +1557,11 @@ def _map_sap_heating(
|
|||
)
|
||||
|
||||
_ELECTRIC_SYSTEM_TYPES = {"electric storage heaters", "electric underfloor heating"}
|
||||
_raw_fuel = main.fuel.split(", ")[0] if main.fuel else ""
|
||||
fuel_type = (
|
||||
main.fuel
|
||||
if main.fuel
|
||||
else ("Electricity" if main.system_type.lower() in _ELECTRIC_SYSTEM_TYPES else main.fuel)
|
||||
_raw_fuel
|
||||
if _raw_fuel
|
||||
else ("Electricity" if main.system_type.lower() in _ELECTRIC_SYSTEM_TYPES else _raw_fuel)
|
||||
)
|
||||
|
||||
return SapHeating(
|
||||
|
|
@ -1580,6 +1581,7 @@ def _map_sap_heating(
|
|||
secondary_heating_type=heating.secondary_heating.secondary_system,
|
||||
shower_outlets=shower_outlets,
|
||||
cylinder_size=heating.water_heating.cylinder_size if heating.water_heating.cylinder_size != "No Cylinder" else None,
|
||||
cylinder_insulation_type=heating.water_heating.insulation_type,
|
||||
cylinder_insulation_thickness_mm=heating.water_heating.insulation_thickness_mm,
|
||||
immersion_heating_type=heating.water_heating.immersion_type,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -385,6 +385,7 @@ class TestFromSiteNotesExample1:
|
|||
],
|
||||
has_fixed_air_conditioning=False,
|
||||
cylinder_size="Normal (90-130 litres)",
|
||||
cylinder_insulation_type="Factory fitted",
|
||||
cylinder_insulation_thickness_mm=12,
|
||||
shower_outlets=ShowerOutlets(
|
||||
shower_outlet=ShowerOutlet(shower_outlet_type="Non-Electric Shower"),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue