mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
Mapper falls back to legacy trickle vent label for pre-existing API responses 🟩
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
093563b0c9
commit
3461b54498
1 changed files with 10 additions and 2 deletions
|
|
@ -99,8 +99,16 @@ def _map_window_ventilation(
|
|||
opening_type=_try_get_str_value("Opening Type"),
|
||||
num_openings=_try_get_int_value("Number of Openings (In Same Window)"),
|
||||
pct_openable=_try_get_int_value("% of Window Openable"),
|
||||
trickle_vent_area_mm2=_try_get_int_value(
|
||||
"Total Trickle Vent Effective Area (mm2) (No Code Then Width x Height)"
|
||||
trickle_vent_area_mm2=next(
|
||||
(
|
||||
v
|
||||
for label in [
|
||||
"Total Trickle Vent Effective Area (mm2) (No Code Then Width x Height)",
|
||||
"Trickle Vent Effective Area (mm2) (No Code Then Width x Height)",
|
||||
]
|
||||
if (v := _try_get_int_value(label)) is not None
|
||||
),
|
||||
None,
|
||||
),
|
||||
num_trickle_vents=_try_get_int_value("No. of Trickle Vents"),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue