Window carries no opening_type — ventilation table is the sole persistence point 🟩

This commit is contained in:
Daniel Roth 2026-06-08 09:45:15 +00:00
parent 3f5b3cf172
commit 7a1aaf4965
3 changed files with 0 additions and 4 deletions

View file

@ -73,7 +73,6 @@ def _map_window(wi: api.WallItem) -> Window:
width_m=round(wi.size.x, 2),
height_m=round(wi.size.z, 2),
area_m2=round(wi.size.x * wi.size.z, 2),
opening_type=wi.symbol.id.removeprefix("window"),
ventilation=_map_window_ventilation(wi.custom_displayable_fields),
)

View file

@ -21,7 +21,6 @@ class Window:
width_m: float
height_m: float
area_m2: float
opening_type: str
ventilation: Optional[WindowVentilation] = None

View file

@ -77,7 +77,6 @@ class MagicPlanWindowModel(SQLModel, table=True):
width_m: Optional[float] = None
height_m: Optional[float] = None
area_m2: Optional[float] = None
opening_type: Optional[str] = None
@classmethod
def from_domain(cls, window: Window, room_id: int) -> "MagicPlanWindowModel":
@ -86,7 +85,6 @@ class MagicPlanWindowModel(SQLModel, table=True):
width_m=window.width_m,
height_m=window.height_m,
area_m2=window.area_m2,
opening_type=window.opening_type,
)