fix(yandex-valuation): cap area_m2 sanity (drop >10000 or ≤0) #538

Merged
lekss361 merged 1 commit from fix/tradein-yandex-area-sanity-cap into main 2026-05-24 15:14:14 +00:00

1 commit

Author SHA1 Message Date
lekss361
4939d04360 fix(yandex-valuation): cap area_m2 sanity (drop >10000 or <=0)
Live observation: sweep on "Базовый переулок, 52" produced area_m2=2_025_106.7
(concatenated digits across DOM boundaries) -> psycopg.NumericValueOutOfRange on
INSERT, lost entire batch of 30 items from page=1.

Cap at 10_000 m2 (residential ceiling) and drop <=0. Keeps the rest of the
item (price, dates, status) so the row still persists with area_m2=NULL --
better than losing the whole batch.
2026-05-24 18:09:12 +03:00