fix(22k): quartirography — use f.flat_type not f.type (column doesn't exist) (#312)
All checks were successful
Deploy / changes (push) Successful in 5s
Deploy / build-backend (push) Successful in 1m35s
Deploy / build-frontend (push) Has been skipped
Deploy / build-worker (push) Successful in 2m38s
Deploy / deploy (push) Successful in 1m0s

This commit is contained in:
lekss361 2026-05-17 16:09:00 +00:00
parent a93bef4147
commit fd2b09b806

View file

@ -985,8 +985,8 @@ def object_flats_quartirography(db: Session, obj_id: int) -> list[dict[str, Any]
)
SELECT
CASE
WHEN f.rooms IS NULL OR LOWER(f.type) LIKE '%нежил%'
OR LOWER(f.type) LIKE '%nonliv%' THEN 'Нежилые'
WHEN f.rooms IS NULL OR LOWER(f.flat_type) LIKE '%нежил%'
OR LOWER(f.flat_type) LIKE '%nonliv%' THEN 'Нежилые'
WHEN f.rooms = 0 THEN 'Студия'
WHEN f.rooms = 1 THEN '1-комн.'
WHEN f.rooms = 2 THEN '2-комн.'