修改: PriceSystem/fangjia/__init__.py
修改: PriceSystem/sell_price/zhuge0118A.py 修改: PriceSystem/test.py
This commit is contained in:
@@ -273,11 +273,11 @@ def dis_feature(query, fields=None):
|
||||
# db1 = client1.fangjia
|
||||
# dsf = db1.average_statistics
|
||||
# s = time.time()
|
||||
<<<<<<< HEAD
|
||||
|
||||
seawater105 = get_collection("fangjia_stat", "district_feature",config.get_mongodb_host(), 27017)
|
||||
=======
|
||||
|
||||
seawater105 = get_collection("fangjia_stat", "district_feature", config.get_mongodb_host(), config.get_mongodb_port())
|
||||
>>>>>>> 09017dda8ec82bf1b4eea67648f8c33417df32f7
|
||||
|
||||
for err_count in range(0, 10):
|
||||
|
||||
try:
|
||||
|
||||
@@ -1363,10 +1363,10 @@ def out_put_price(ct, rl, lk, weekend):
|
||||
|
||||
#print('make_up',make_up,'*'*20)
|
||||
#print('credic',mm[1])
|
||||
|
||||
try:
|
||||
|
||||
|
||||
|
||||
|
||||
def stat_save(ct,rl,p,weekend,mm,c_date,m_date,make_up,estate_type):
|
||||
|
||||
stat.replace_one(
|
||||
|
||||
{"city": ct, "region": rl, "district_name": p[0], "weekend": weekend},
|
||||
@@ -1376,8 +1376,55 @@ def out_put_price(ct, rl, lk, weekend):
|
||||
"m_date": m_date, 'value_type': int(mm[2]), 'weekend_markup': make_up,
|
||||
'changed_markup': make_up, 'markup': make_up, 'sample_size': mm[3],
|
||||
'estate_type': estate_type}, True
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
def pt_up(ct,rl,p,weekend,c_date,cmd_estate_type):
|
||||
|
||||
pt.replace_one(
|
||||
|
||||
{"city": ct, "region": rl, "name": p[0], "calc_date": weekend},
|
||||
|
||||
{"city": ct, "region": rl, "name": p[0], "c_date": c_date, 'status': int(102),
|
||||
'remark': 'week', 'category': 'sell', "calc_date": weekend, 'priority': int(0),
|
||||
'estate_type': cmd_estate_type, 'problem': None, "calc_type": int(0)
|
||||
}, True
|
||||
)
|
||||
|
||||
def pt_down(ct,rl,p,weekend,c_date,cmd_estate_type,mm):
|
||||
pt.replace_one(
|
||||
|
||||
{"city": ct, "region": rl, "name": p[0], "calc_date": weekend},
|
||||
|
||||
{"city": ct, "region": rl, "name": p[0], "c_date": c_date, 'status': int(3),
|
||||
'remark': 'week', 'category': 'sell', "calc_date": weekend, 'priority': int(0),
|
||||
'problem': mm[0], 'estate_type': cmd_estate_type, "calc_type": int(0)
|
||||
}, True
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
try:
|
||||
|
||||
stat_save(ct,rl,p,weekend,mm,c_date,m_date,make_up,estate_type)
|
||||
pt_up(ct,rl,p,weekend,c_date,cmd_estate_type)
|
||||
|
||||
'''
|
||||
stat.replace_one(
|
||||
|
||||
{"city": ct, "region": rl, "district_name": p[0], "weekend": weekend},
|
||||
|
||||
{"city": ct, "region": rl, "district_name": p[0], 'credit': mm[1],
|
||||
"calc_value": int(mm[0]), "weekend": weekend, "c_date": c_date, 'avg_price': int(mm[0]),
|
||||
"m_date": m_date, 'value_type': int(mm[2]), 'weekend_markup': make_up,
|
||||
'changed_markup': make_up, 'markup': make_up, 'sample_size': mm[3],
|
||||
'estate_type': estate_type}, True
|
||||
)
|
||||
|
||||
|
||||
|
||||
pt.replace_one(
|
||||
|
||||
{"city": ct, "region": rl, "name": p[0], "calc_date": weekend},
|
||||
@@ -1387,22 +1434,19 @@ def out_put_price(ct, rl, lk, weekend):
|
||||
'estate_type': cmd_estate_type, 'problem': None, "calc_type": int(0)
|
||||
}, True
|
||||
)
|
||||
'''
|
||||
|
||||
|
||||
except:
|
||||
stat_save(ct,rl,p,weekend,mm,c_date,m_date,make_up,estate_type)
|
||||
|
||||
stat.replace_one(
|
||||
|
||||
{"city": ct, "region": rl, "district_name": p[0], "weekend": weekend},
|
||||
|
||||
{"city": ct, "region": rl, "district_name": p[0], 'credit': mm[1],
|
||||
"calc_value": int(mm[0]), "weekend": weekend, "c_date": c_date, 'avg_price': int(mm[0]),
|
||||
"m_date": m_date, 'value_type': int(mm[2]), 'weekend_markup': make_up,
|
||||
'changed_markup': make_up, 'markup': make_up, 'sample_size': mm[3],
|
||||
'estate_type': estate_type}, True
|
||||
)
|
||||
|
||||
else:
|
||||
|
||||
pt_down(ct,rl,p,weekend,c_date,cmd_estate_type,mm)
|
||||
'''
|
||||
pt.replace_one(
|
||||
|
||||
{"city": ct, "region": rl, "name": p[0], "calc_date": weekend},
|
||||
@@ -1412,3 +1456,4 @@ def out_put_price(ct, rl, lk, weekend):
|
||||
'problem': mm[0], 'estate_type': cmd_estate_type, "calc_type": int(0)
|
||||
}, True
|
||||
)
|
||||
'''
|
||||
|
||||
+3
-3
@@ -34,15 +34,15 @@ rl = '海珠'
|
||||
lk = '会展世界城三期'
|
||||
'''
|
||||
#成都- 都江堰- 溪岭雪#上海徐汇 灞桥沁水新城百汇园西 安 未央 兴乐园 弘和美邻馆 雁塔鸿景花园上海 奉贤 万隆花苑#
|
||||
<<<<<<< HEAD
|
||||
"""
|
||||
ct='洛阳'
|
||||
rl='涧西'
|
||||
lk='奥阳康城'
|
||||
=======
|
||||
"""
|
||||
ct='北海'
|
||||
rl='银海'
|
||||
lk='汇景公寓'
|
||||
>>>>>>> 09017dda8ec82bf1b4eea67648f8c33417df32f7
|
||||
|
||||
#成都双流长滩一号 上海 奉贤 朝阳新村##上海 奉贤 棕榈滩别墅深圳龙岗丽皇阁
|
||||
#洛阳涧西奥阳康城
|
||||
|
||||
|
||||
Reference in New Issue
Block a user