This commit is contained in:
2018-06-17 12:19:58 +08:00
parent 8467be7c1f
commit 5c97ce1146
+1 -1
View File
@@ -32,7 +32,7 @@ def get_district(city):
keys = {"city": 1, "region": 1, "name": 1, "_id": 0}
for dis in fangjia.get_collection("fangjia", "seaweed", config.get_seaweed_host()).find({"cat": "district", "status": 0, "city": city}, keys):
dis["weekend"] = weekend
if not has_price(dis["city"], dis["region"], dis['name']):
if "region" in dis and not has_price(dis["city"], dis["region"], dis['name']):
seaweeds.append(dis)
else:
logger.info(str(dis) + "放弃")