feat(sf-b4): GET /landing/stats — 5 KPI + paradox for landing page hero #331

Merged
lekss361 merged 6 commits from feat/sf-b4-landing-stats into main 2026-05-17 21:47:11 +00:00
Showing only changes of commit b0d48164b6 - Show all commits

View file

@ -54,7 +54,7 @@ def _query_stats(db: Session) -> dict[str, Any] | None:
row_price = db.execute(
text(
"SELECT"
" COUNT(*) FILTER (WHERE price_per_m2 IS NOT NULL) * 100.0"
" COUNT(*) FILTER (WHERE price_per_m2_rub IS NOT NULL) * 100.0"
" / NULLIF(COUNT(*), 0)"
" FROM objective_lots"
)