Explorar el Código

逻辑修改

Signed-off-by: Binren Zhnag <zhangbr@elab-plus.com>
Binren Zhnag hace 5 años
padre
commit
6bc5d030a0
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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)