|
@@ -218,8 +218,9 @@ def update_other_city():
|
|
|
@app.route('/report_test', methods=['GET', 'POST'])
|
|
|
def report_test():
|
|
|
try:
|
|
|
- reprt_push = ReportPush('bi_report')
|
|
|
- result = reprt_push.report_data_query(2)
|
|
|
+ task_id = request.args.get('id', default=None, type=int)
|
|
|
+ report_push = ReportPush('bi_report')
|
|
|
+ result = report_push.report_data_query(task_id)
|
|
|
return json.dumps(result, ensure_ascii=False, cls=DecimalEncoder)
|
|
|
except Exception as e:
|
|
|
return str(e)
|