fix(tradein): /sales-vs-listings street_only не house_linked (Refs #757) (#777)
Some checks failed
Deploy Trade-In / deploy (push) Blocked by required conditions
Deploy Trade-In / changes (push) Successful in 5s
Deploy Trade-In / build-frontend (push) Has been skipped
Deploy Trade-In / test (push) Successful in 24s
Deploy Trade-In / build-backend (push) Has been cancelled
Some checks failed
Deploy Trade-In / deploy (push) Blocked by required conditions
Deploy Trade-In / changes (push) Successful in 5s
Deploy Trade-In / build-frontend (push) Has been skipped
Deploy Trade-In / test (push) Successful in 24s
Deploy Trade-In / build-backend (push) Has been cancelled
Co-authored-by: bot-backend <bot-backend@gendsgn.local> Co-committed-by: bot-backend <bot-backend@gendsgn.local>
This commit is contained in:
parent
652e0df10f
commit
9954f4962f
1 changed files with 3 additions and 2 deletions
|
|
@ -1691,7 +1691,8 @@ def get_sales_vs_listings(
|
|||
deals_with_listings=deals_with_listings,
|
||||
linkage_rate_pct=linkage_rate_pct,
|
||||
median_discount_pct=median_discount,
|
||||
# #721 ADR v3: total_deals>0 здесь (guard `if not rows` выше → _empty).
|
||||
data_quality="house_linked" if deals_with_listings > 0 else "street_only",
|
||||
# street_sales_vs_listings матчит по УЛИЦЕ (не по дому, #721 ADR) →
|
||||
# даже при deals_with_listings>0 это street-level, не house. house_linked НЕ emit'им.
|
||||
data_quality="street_only" if total_deals > 0 else "no_data",
|
||||
pairs=pairs,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue