gendesign/tradein-mvp/backend
lekss361 961bdc0225 fix(yandex-valuation): tighten area regex + chronological date ordering
Three parser quality bugs observed on prod (Базовый 52 sweep, 132 rows):

A. RE_ITEM_AREA captured year+area concat like '202442,6' from chunked text
   where DOM whitespace was stripped between publish-year and area tokens.
   Added negative lookbehind + 4-digit cap on whole part.

B. Same regex sometimes matched a sub-fragment '2,2' inside '52,2' — same
   root cause, fixed by the tightened regex.

C. publish_date / removed_date were assigned by page-text order, not
   chronologically. ~1% of rows on prod had removed < publish. Sort the
   parsed date list before splitting.

Cap from prior PR #538 stays as belt-and-suspenders for any junk that
still slips through.
2026-05-24 18:28:22 +03:00
..
app fix(yandex-valuation): tighten area regex + chronological date ordering 2026-05-24 18:28:22 +03:00
data/sql feat(tradein): Phase C — Avito IMV per-house backfill (SQL + script) (#534) 2026-05-24 14:50:31 +00:00
tests fix(yandex-valuation): tighten area regex + chronological date ordering 2026-05-24 18:28:22 +03:00
.dockerignore feat: add tradein-mvp subproject (Trade-In Estimator под /trade-in) 2026-05-21 00:25:39 +03:00
Dockerfile feat: add tradein-mvp subproject (Trade-In Estimator под /trade-in) 2026-05-21 00:25:39 +03:00
pyproject.toml fix(tradein-photos): sanitize uploaded images via Pillow re-encode (#511) 2026-05-24 11:32:04 +00:00