fix(22k): quartirography — use f.flat_type not f.type (column doesn't exist) (#312)
This commit is contained in:
parent
a93bef4147
commit
fd2b09b806
1 changed files with 2 additions and 2 deletions
|
|
@ -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-комн.'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue