修改: PriceSystem/fangjia/__init__.py
This commit is contained in:
@@ -334,6 +334,40 @@ def find_seaweed(query, fields=None):
|
||||
return data
|
||||
|
||||
raise Exception("yang ben cha xun shi bai1")
|
||||
|
||||
|
||||
|
||||
|
||||
def find_region_price(query, fields=None):
|
||||
# dirlt=p[0]
|
||||
|
||||
# client1 = pymongo.MongoClient('192.168.0.136',27017)
|
||||
# db1 = client1.fangjia
|
||||
# seaweed1 = db1.seaweed
|
||||
# s = time.time()
|
||||
seawater105 = get_collection("fangjia", "region_stat", '192.168.0.136', 27017)
|
||||
for err_count in range(0,2):
|
||||
|
||||
try:
|
||||
# print('flag5')
|
||||
#lt = seawater105.count(query)
|
||||
|
||||
pos = list(seawater105.find(query))
|
||||
data = pandas.DataFrame(pos)
|
||||
del pos
|
||||
# print("==================>", time.time() - s)
|
||||
return data
|
||||
|
||||
except:
|
||||
|
||||
# err_count = err_count + 1
|
||||
#lt = seawater105.count(query)
|
||||
pos = list(seawater105.find(query))
|
||||
data = pandas.DataFrame(pos)
|
||||
del pos
|
||||
return data
|
||||
|
||||
raise Exception("yang ben cha xun shi bai1")
|
||||
|
||||
|
||||
def find_region_district_list_name(query, fields=None):
|
||||
|
||||
Reference in New Issue
Block a user