修改: 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:
@@ -160,18 +160,14 @@ def findHouse(query, fields=None):
|
|||||||
seawater105 = get_collection("fangjia", "seawater", config.get_seawater_host(), 27777)
|
seawater105 = get_collection("fangjia", "seawater", config.get_seawater_host(), 27777)
|
||||||
for err_count in range(0, 10):
|
for err_count in range(0, 10):
|
||||||
try:
|
try:
|
||||||
<<<<<<< HEAD
|
|
||||||
|
|
||||||
lt = 100
|
lt = 100
|
||||||
# seawater.find(query,{"p_date":-1}).sort([("p_date",-1)])
|
# 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).sort([("p_date",-1)]).limit(lt))
|
||||||
#pos = list(seawater105.find(query, fields).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)
|
data = pandas.DataFrame(pos)
|
||||||
del pos
|
del pos
|
||||||
# print("==================>", time.time() - s)
|
# print("==================>", time.time() - s)
|
||||||
|
|||||||
Binary file not shown.
@@ -192,7 +192,7 @@ def out_price(ct,rl,lk,calc):
|
|||||||
|
|
||||||
|
|
||||||
def update(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]
|
return dd[0]
|
||||||
'''
|
'''
|
||||||
print(dd)
|
print(dd)
|
||||||
|
|||||||
+3
-3
@@ -18,9 +18,9 @@ weekend = get_weekend('20180415')
|
|||||||
|
|
||||||
s = time.time()
|
s = time.time()
|
||||||
|
|
||||||
ct='深圳'
|
ct='嘉兴'
|
||||||
rl='福田'
|
rl='海盐'
|
||||||
lk='世纪豪庭'
|
lk='保利壹品'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user