소스 검색

逻辑修改

Signed-off-by: Binren Zhnag <zhangbr@elab-plus.com>
Binren Zhnag 5 년 전
부모
커밋
6bc5d030a0
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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)