diff --git a/PriceSystem/zhuge0118A.py b/PriceSystem/zhuge0118A.py index f0a5870..b8effae 100644 --- a/PriceSystem/zhuge0118A.py +++ b/PriceSystem/zhuge0118A.py @@ -345,8 +345,8 @@ def commonprice(ct,rl,p): latitude=lat query1 = {"status":0,"cat":"district", - "lat2":{"$gt":latitude-kkk*10**10/0.86,"$lt":latitude+kkk*10**10/0.86}, - "lng2":{"$gt":longtitude-kkk*10**10,"$lt":longtitude+kkk*10**10}} + "lat2":{"$gt":int(latitude-kkk*10**10/0.86),"$lt":int(latitude+kkk*10**10/0.86)}, + "lng2":{"$gt":int(longtitude-kkk*10**10),"$lt":int(longtitude+kkk*10**10)}} #fields1 = {"lat2":1,"lng2":1, "city":1,"region":1,"cat":1,"name":1} fields1 = {"lat2":1,"lng2":1, "city":1,"region":1,