fix(yandex-valuation): parse removed_date, fix total_floors regex, normalize NBSP #526

Merged
lekss361 merged 1 commit from feat/tradein-yandex-valuation-parser-fixes into main 2026-05-24 14:12:17 +00:00

1 commit

Author SHA1 Message Date
lekss361
85f1f90410 fix(yandex-valuation): parse removed_date, fix total_floors regex, normalize NBSP
- Add removed_date field to ValuationHistoryItem (extracts 2nd DD.MM.YYYY in chunk)
- RE_FLOORS: \d+\s+этаж → \d+\s+этажей (plural-only to avoid matching item floors)
- Normalize NBSP \xa0 → space in parse() before regex (fixes start_price_per_m2 / last_price_per_m2 = NULL bug)
- Add ValuationHouseMeta.validate_match() for cross-checking against expected house

Bugs observed on prod: 160 rows in house_placement_history with all
removed_date=NULL, total_floors=NULL, *_price_per_m2=NULL.
2026-05-24 16:58:57 +03:00