gendesign/tradein-mvp/backend/app
lekss361 ed60fe1b95 fix(tradein-sql): dedup cross-source houses in 063 migration
A physical building with both Avito ext_house_id (3 listings) and
cian/yandex listings (5 lots, no ext_id) was getting TWO houses rows
(one avito, one derived). Step 4 then split the 8 listings across them.

Fix:
- Step 2 (derived insert): NOT IN (avito-addresses) — skip if already covered
- Step 4 (fuzzy link): COALESCE prefers avito-house at same addr over derived

Adds sanity check: WARN if any normalized address has multiple houses rows.
2026-05-24 17:09:57 +03:00
..
api chore(tradein): remove dead mock-fallback code from trade_in.py (#521) 2026-05-24 13:11:13 +00:00
core feat(tradein): postgres_fdw live read of gendesign.cad_buildings (replaces snapshot) (#493) 2026-05-24 08:57:30 +00:00
schemas fix(tradein-sql): dedup cross-source houses in 063 migration 2026-05-24 17:09:57 +03:00
services fix(tradein-sql): dedup cross-source houses in 063 migration 2026-05-24 17:09:57 +03:00
tasks fix(tradein): geocode backfill + remove Avito exclusion from estimator (#490) 2026-05-23 20:03:48 +00:00
__init__.py feat: add tradein-mvp subproject (Trade-In Estimator под /trade-in) 2026-05-21 00:25:39 +03:00
main.py feat(tradein): postgres_fdw live read of gendesign.cad_buildings (replaces snapshot) (#493) 2026-05-24 08:57:30 +00:00