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. |
||
|---|---|---|
| .. | ||
| app | ||
| data/sql | ||
| tests | ||
| .dockerignore | ||
| Dockerfile | ||
| pyproject.toml | ||