|
@@ -170,7 +170,6 @@ def tongce_data():
|
|
|
response = {}
|
|
|
tongce = TongCe()
|
|
|
try:
|
|
|
- tongce.table_type_insert()
|
|
|
result = tongce.lingdi_data_scores()
|
|
|
response['code'] = 0
|
|
|
response['message'] = '成功'
|
|
@@ -184,6 +183,16 @@ def tongce_data():
|
|
|
return json.dumps(response, ensure_ascii=False)
|
|
|
|
|
|
|
|
|
+@app.route('/update_rule', methods=['GET', 'POST'])
|
|
|
+def tongce_update_rule():
|
|
|
+ try:
|
|
|
+ tongce = TongCe()
|
|
|
+ tongce.table_type_insert()
|
|
|
+ except Exception as e:
|
|
|
+ return str(e)
|
|
|
+ return '更新成功!! 1'
|
|
|
+
|
|
|
+
|
|
|
@app.route('/update_other_city', methods=['GET', 'POST'])
|
|
|
def update_other_city():
|
|
|
response = {}
|