diff --git a/PriceSystem/CalcCmdReceiver.py b/PriceSystem/CalcCmdReceiver.py index fc161f9..722b11d 100644 --- a/PriceSystem/CalcCmdReceiver.py +++ b/PriceSystem/CalcCmdReceiver.py @@ -53,6 +53,7 @@ if __name__ == "__main__": if os.path.exists(lock_file): os.remove(lock_file) pro_num = config.get_worker_num() + #pro_num = 1 pool = multiprocessing.Pool(processes=pro_num) for pid in range(0, pro_num): pool.apply_async(worker, ()) diff --git a/PriceSystem/ones_Sender.py b/PriceSystem/ones_Sender.py index 9562b31..9b45e6a 100644 --- a/PriceSystem/ones_Sender.py +++ b/PriceSystem/ones_Sender.py @@ -41,5 +41,20 @@ def get_weekend(tt): if __name__ == "__main__": weekend = "" + #send_cmd({"city": "西安", "region": "雁塔", "name": "鸿景花园", "weekend": get_weekend('20180325')}) send_cmd({"city": "西安", "region": "雁塔", "name": "鸿景花园", "weekend": get_weekend('20180325')}) #sys.exit(0) + + + + + + + + + + + + + + diff --git a/PriceSystem/sell_price/zhuge0118A.py b/PriceSystem/sell_price/zhuge0118A.py index 3729e3c..20740a2 100644 --- a/PriceSystem/sell_price/zhuge0118A.py +++ b/PriceSystem/sell_price/zhuge0118A.py @@ -1127,7 +1127,7 @@ def commonprice(ct, rl, p): #print('ddd11',ddd11) #print('junjia_ganji=',junjia1,'$'*100) - cc = group(junjia_front, junjia1, 1) + cc = group(junjia_front, junjia1, 1,16) # junjia_km=k_means(junjia) # print('cc=',cc) ############ @@ -1304,6 +1304,8 @@ def last_sunday(weekend): # last_sunday=last_sunday(weekend) def make_up_price(ct, rl, lk, weekend): + + print('lg=',ct,rl,lk) # last_sunday=last_sunday(weekend) # save_lg=client136.fangjia.district_stat if lk != None: diff --git a/PriceSystem/test.py b/PriceSystem/test.py index c8eac2e..9aa0c0c 100644 --- a/PriceSystem/test.py +++ b/PriceSystem/test.py @@ -33,20 +33,21 @@ ct = '广州' rl = '海珠' lk = '会展世界城三期' ''' -#成都- 都江堰- 溪岭雪#上海徐汇 灞桥沁水新城百汇园西 安 未央 兴乐园 弘和美邻馆 雁塔鸿景花园 -ct='西安' -rl='雁塔' -lk='鸿景花园' -#成都双流长滩一号 上海 奉贤 朝阳新村## +#成都- 都江堰- 溪岭雪#上海徐汇 灞桥沁水新城百汇园西 安 未央 兴乐园 弘和美邻馆 雁塔鸿景花园上海 奉贤 万隆花苑 +ct='上海' +rl='奉贤' +lk='棕榈滩别墅' +#成都双流长滩一号 上海 奉贤 朝阳新村##上海 奉贤 棕榈滩别墅 #未央 -#weekend = datetime.datetime.strptime("2018-03-11", "%Y-%m-%d") +weekend = datetime.datetime.strptime("2018-03-25", "%Y-%m-%d") #for i in range(0, 100): -# sellPrice.out_put_price(ct, rl, lk, fangjia.get_weekend()) -# e = time.time() -# print(e - s) +e = time.time() +sellPrice.out_put_price(ct, rl, lk, fangjia.get_weekend()) + +print(e - s) ''' ### import pandas as pd @@ -60,7 +61,7 @@ for i in a.index: sellPrice.out_put_price(ct, rl, lk, weekend) ''' - +''' @fangjia.cache(1000) def sum1(a, b): @@ -69,3 +70,4 @@ def sum1(a, b): print(sum1(1,2)) +''' \ No newline at end of file