fix(tradein): feed raw payload.address to same-building anchor (geocode-independent) (#680)
All checks were successful
Deploy Trade-In / changes (push) Successful in 5s
Deploy Trade-In / build-frontend (push) Has been skipped
Deploy Trade-In / test (push) Successful in 22s
Deploy Trade-In / build-backend (push) Successful in 40s
Deploy Trade-In / deploy (push) Successful in 32s
All checks were successful
Deploy Trade-In / changes (push) Successful in 5s
Deploy Trade-In / build-frontend (push) Has been skipped
Deploy Trade-In / test (push) Successful in 22s
Deploy Trade-In / build-backend (push) Successful in 40s
Deploy Trade-In / deploy (push) Successful in 32s
Co-authored-by: bot-backend <bot-backend@gendsgn.local> Co-committed-by: bot-backend <bot-backend@gendsgn.local>
This commit is contained in:
parent
b5c26d2723
commit
351ec88104
1 changed files with 5 additions and 1 deletions
|
|
@ -1624,7 +1624,11 @@ async def estimate_quality(
|
|||
|
||||
comps, anchor_tier = _fetch_anchor_comps(
|
||||
db,
|
||||
address=geo.full_address,
|
||||
# payload.address (сырой ввод) ПЕРВИЧЕН: на проде геокод часто
|
||||
# возвращает None (lat/lon/canonical=None), и geo.full_address пуст —
|
||||
# тогда same-building Tier A не находил дом и падал в радиус. Raw-адрес
|
||||
# всегда есть и именно на нём валидирован нормализатор (#677/#679).
|
||||
address=payload.address or geo.full_address,
|
||||
target_house_id=target_house_id,
|
||||
lat=geo.lat,
|
||||
lon=geo.lon,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue