Browse Source

逻辑修改

Signed-off-by: Binren Zhnag <zhangbr@elab-plus.com>
Binren Zhnag 5 years ago
parent
commit
6bc5d030a0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      flask_app.py

+ 2 - 2
flask_app.py

@@ -218,9 +218,9 @@ def update_other_city():
 def report_test():
     global result
     try:
-        task_id = request.args.get('id', default=None, type=int)
+        task_id = request.args.get('id', default=0, type=int)
         report_push = ReportPush('bi_report')
-        result = report_push.report_push(task_id)
+        result = report_push.report_data_query(task_id)
     except Exception as e:
         print(str(e))
         result['error'] = str(e)