gendesign/backend/app/api
lekss361 9197a539e9 fix(parcels): _parse_floors handle int (post-migration #169 schema change)
After PR #169 cad_buildings schema migration, `floors` column is INT
(was TEXT in legacy schema). Existing `_parse_floors(r.get("floors"))`
call in analyze_parcel → _neighbors_summary crashes with:
  AttributeError: 'int' object has no attribute 'strip'

Fix: type union str | int | None. If int → return directly (no strip).
Preserve TEXT range parsing ("5-7" → 7) for backwards-compat with
any legacy data still in cad_buildings_old_apr26.
2026-05-15 14:50:22 +03:00
..
v1 fix(parcels): _parse_floors handle int (post-migration #169 schema change) 2026-05-15 14:50:22 +03:00
__init__.py init 2026-04-25 13:45:19 +03:00