From 1507575698b92b0aa4734d91b4567c13ab57515c Mon Sep 17 00:00:00 2001 From: lekss361 Date: Mon, 27 Apr 2026 22:03:48 +0300 Subject: [PATCH] fix alch --- backend/app/services/analytics_queries.py | 2 +- backend/uv.lock | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/app/services/analytics_queries.py b/backend/app/services/analytics_queries.py index 6824b8a0..0c9ada10 100644 --- a/backend/app/services/analytics_queries.py +++ b/backend/app/services/analytics_queries.py @@ -1219,7 +1219,7 @@ def recommend_mix( AND a.type = 'apartments' WHERE o.region_cd = :rc AND o.addr ILIKE '%' || :dn || '%' - AND (:cls::text IS NULL OR o.obj_class = :cls) + AND (CAST(:cls AS TEXT) IS NULL OR o.obj_class = :cls) ORDER BY o.flat_count DESC NULLS LAST LIMIT 5 """ diff --git a/backend/uv.lock b/backend/uv.lock index c777f271..c97f6914 100644 --- a/backend/uv.lock +++ b/backend/uv.lock @@ -497,6 +497,7 @@ dependencies = [ { name = "numpy" }, { name = "openpyxl" }, { name = "pandas" }, + { name = "pillow" }, { name = "playwright" }, { name = "psycopg", extra = ["binary"] }, { name = "pydantic" }, @@ -534,6 +535,7 @@ requires-dist = [ { name = "numpy", specifier = ">=2.0.0" }, { name = "openpyxl", specifier = ">=3.1.0" }, { name = "pandas", specifier = ">=2.2.0" }, + { name = "pillow", specifier = ">=10.4.0" }, { name = "playwright", specifier = ">=1.45.0" }, { name = "psycopg", extras = ["binary"], specifier = ">=3.2.0" }, { name = "pydantic", specifier = ">=2.7.0" },