From 0de55a8dc72df09fd10add9ab693cc5d14d2a89e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E5=B9=B2?= Date: Wed, 23 May 2018 14:31:34 +0800 Subject: [PATCH] =?UTF-8?q?=09=E4=BF=AE=E6=94=B9=EF=BC=9A=20=20=20=20=20Pr?= =?UTF-8?q?iceSystem/sell=5Fprice/zhuge0118A.py=20=09=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=EF=BC=9A=20=20=20=20=20PriceSystem/test.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PriceSystem/sell_price/zhuge0118A.py | 13 +++++++++++-- PriceSystem/test.py | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/PriceSystem/sell_price/zhuge0118A.py b/PriceSystem/sell_price/zhuge0118A.py index e8d2fe3..509d517 100644 --- a/PriceSystem/sell_price/zhuge0118A.py +++ b/PriceSystem/sell_price/zhuge0118A.py @@ -1438,7 +1438,10 @@ def ghhh(kkg): stat = fangjia.get_collection("fangjia", "district_stat", config.get_district_stat_host(), config.get_district_stat_port()) -pt = fangjia.get_collection("fangjia_log", "problem_command", config.get_log_mongodb_host(), config.get_log_mongodb_port()) +pt = fangjia.get_collection("fangjia_log", "calc_command", config.get_log_mongodb_host(), config.get_log_mongodb_port()) +#pt = fangjia.get_collection("fangjia_log", "problem_command", config.get_log_mongodb_host(), config.get_log_mongodb_port()) + + #stat = fangjia.get_collection("fangjia", "Copy_of_district_stat_shanghai_april_ten", '192.168.10.182', 27017) #stat = fangjia.get_collection("fangjia", config.get_save_db(), '192.168.10.182', 27017) @@ -1652,7 +1655,13 @@ def out_put_price(ct, rl, lk, weekend): else: return int(mm[0]) #s1=time.time() - avg=avg_compare(ct,rl,lk,mm,weekend) + + + #avg=avg_compare(ct,rl,lk,mm,weekend) + + avg=int(mm[0]) + + make_up = int(make_up(avg,last_sunday_price)) #print('s1_time=',time.time()-s1) #avg=mm[0] diff --git a/PriceSystem/test.py b/PriceSystem/test.py index d1072e5..a7be9d1 100644 --- a/PriceSystem/test.py +++ b/PriceSystem/test.py @@ -14,7 +14,7 @@ def get_weekend(tt): pacific = pytz.timezone('Asia/Shanghai') return pacific.localize(bb) -weekend = get_weekend('20180429') +weekend = get_weekend('20180401') s = time.time()