租售比过滤

This commit is contained in:
shenjian@fangjia.com
2022-07-06 17:55:26 +08:00
parent 7ef3de024b
commit 69554e81f6
+1 -1
View File
@@ -89,7 +89,7 @@ def format_rent(x):
:param x:
:return:
"""
x.rent_price = commutils.format_rent_price(x.avg_price, x.rent_price, 1500)
x.rent_price = commutils.format_rent_price(x.avg_price, x.rent_price, 1500, 100)
# 过滤租金与均价无的小区
if len(none_rent_and_price_cities) > 0:
if x['city'] in none_rent_and_price_cities and (('rent_price' not in x or str(x['rent_price']) == 'nan') and ('avg_price' not in x or str(x['avg_price']) == 'nan')):