fix(tradein): /sales-vs-listings street_only не house_linked (Refs #757) #777
1 changed files with 3 additions and 2 deletions
|
|
@ -1691,7 +1691,8 @@ def get_sales_vs_listings(
|
||||||
deals_with_listings=deals_with_listings,
|
deals_with_listings=deals_with_listings,
|
||||||
linkage_rate_pct=linkage_rate_pct,
|
linkage_rate_pct=linkage_rate_pct,
|
||||||
median_discount_pct=median_discount,
|
median_discount_pct=median_discount,
|
||||||
# #721 ADR v3: total_deals>0 здесь (guard `if not rows` выше → _empty).
|
# street_sales_vs_listings матчит по УЛИЦЕ (не по дому, #721 ADR) →
|
||||||
data_quality="house_linked" if deals_with_listings > 0 else "street_only",
|
# даже при deals_with_listings>0 это street-level, не house. house_linked НЕ emit'им.
|
||||||
|
data_quality="street_only" if total_deals > 0 else "no_data",
|
||||||
pairs=pairs,
|
pairs=pairs,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue