优化过滤
This commit is contained in:
@@ -89,6 +89,10 @@ def format_rent(x):
|
|||||||
:param x:
|
:param x:
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
|
# 哈尔滨不过滤最低租售比
|
||||||
|
if '哈尔滨' == x['city']:
|
||||||
|
x.rent_price = commutils.format_rent_price(x.avg_price, x.rent_price, 1500, 0)
|
||||||
|
else:
|
||||||
x.rent_price = commutils.format_rent_price(x.avg_price, x.rent_price, 1500, 100)
|
x.rent_price = commutils.format_rent_price(x.avg_price, x.rent_price, 1500, 100)
|
||||||
# 过滤租金与均价无的小区
|
# 过滤租金与均价无的小区
|
||||||
if len(none_rent_and_price_cities) > 0:
|
if len(none_rent_and_price_cities) > 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user