diff --git a/PriceSystem/fangjia/__init__.py b/PriceSystem/fangjia/__init__.py index 697768d..cca38b5 100644 --- a/PriceSystem/fangjia/__init__.py +++ b/PriceSystem/fangjia/__init__.py @@ -25,7 +25,7 @@ def get_logger(name): file_handler = logging.FileHandler("/home/goojia/logs/" + name + ".log") file_handler.setFormatter(formatter) logger.addHandler(file_handler) - logger.setLevel("INFO") + logger.setLevel("ERROR") return logger @@ -39,7 +39,7 @@ def get_performance_logger(name): file_handler = logging.FileHandler("/home/goojia/logs/" + name + ".performance.log") file_handler.setFormatter(formatter) logger.addHandler(file_handler) - logger.setLevel("INFO") + logger.setLevel("ERROR") return logger now = datetime.datetime.now().replace(hour=0, minute=0, second=0, microsecond=0) @@ -274,6 +274,7 @@ def dis_feature(query, fields=None): # dsf = db1.average_statistics # s = time.time() seawater105 = get_collection("fangjia_stat", "district_feature", config.get_mongodb_host(), config.get_mongodb_port()) + #seawater105 = get_collection("luogan", "district_feature", '192.168.0.136',27017) for err_count in range(0, 10): diff --git a/PriceSystem/sell_price/zhuge0118A.py b/PriceSystem/sell_price/zhuge0118A.py index e6203bb..5c81058 100644 --- a/PriceSystem/sell_price/zhuge0118A.py +++ b/PriceSystem/sell_price/zhuge0118A.py @@ -508,7 +508,7 @@ def commonprice(ct, rl, p): dd = neighbor(location['lng2'].iloc[0], location['lat2'].iloc[0], 5, ct, rl, p) # print(time.time()-t1,'t1'*10) - # print('dd=',dd,'dd'*20) + #print('dd=',dd,'dd'*20) if dd.shape[0] >= factor: # print('$'*50) # dd1=neighbor(location['lng2'][0],location['lat2'][0],5) @@ -916,7 +916,7 @@ def commonprice(ct, rl, p): bl = ['anjuke_esf_price', 'soufang_esf_price', 'tuboshi_esf_price', - 'ganji_esf_price' + ] # ppd3dp=ppd3['total_price'].dropna() @@ -1449,3 +1449,7 @@ def out_put_price(ct, rl, lk, weekend): }, True ) ''' + + + + diff --git a/PriceSystem/test.py b/PriceSystem/test.py index 4342a2f..d9683ad 100644 --- a/PriceSystem/test.py +++ b/PriceSystem/test.py @@ -37,11 +37,11 @@ lk = '会展世界城三期' """ ct='洛阳' rl='涧西' -lk='奥阳康城' +lk='奥阳康城'上海浦东龚家阁龚家花园绍兴越城辕门新村南区亨纳斯花园杨浦 """ -ct='北海' -rl='银海' -lk='汇景公寓' +ct='上海' +rl='杨浦' +lk='亨纳斯花园' #成都双流长滩一号 上海 奉贤 朝阳新村##上海 奉贤 棕榈滩别墅深圳龙岗丽皇阁 #洛阳涧西奥阳康城