修改: PriceSystem/fangjia/__init__.py

修改:     PriceSystem/fix/__pycache__/price_fix.cpython-36.pyc
	修改:     PriceSystem/fix/price_fix.py
	修改:     PriceSystem/test.py
This commit is contained in:
罗干
2018-04-11 16:15:43 +08:00
parent 3df2e72801
commit ad8a960049
4 changed files with 6 additions and 10 deletions
+2 -6
View File
@@ -160,18 +160,14 @@ def findHouse(query, fields=None):
seawater105 = get_collection("fangjia", "seawater", config.get_seawater_host(), 27777)
for err_count in range(0, 10):
try:
<<<<<<< HEAD
lt = 100
# seawater.find(query,{"p_date":-1}).sort([("p_date",-1)])
pos = list(seawater105.find(query, fields).sort([("p_date",-1)]).limit(lt))
#pos = list(seawater105.find(query, fields).limit(lt))
=======
lt = 100
# seawater.find(query,{"p_date":-1}).sort([("p_date",-1)])
pos = list(seawater105.find(query, fields).sort([("p_date",-1)]).limit(lt))
>>>>>>> d253c17cae80aab0340965a2bd161f1aea95d180
data = pandas.DataFrame(pos)
del pos
# print("==================>", time.time() - s)
Binary file not shown.
+1 -1
View File
@@ -192,7 +192,7 @@ def out_price(ct,rl,lk,calc):
def update(ct,rl,lk,calc):
dd= out_price(ct,rl,lk,calc)
dd= out_price(ct,rl,lk,calc)
return dd[0]
'''
print(dd)
+3 -3
View File
@@ -18,9 +18,9 @@ weekend = get_weekend('20180415')
s = time.time()
ct='深圳'
rl='福田'
lk='世纪豪庭'
ct='嘉兴'
rl='海盐'
lk='保利壹品'