Browse Source

flask_app: 修改参数类型

Signed-off-by: binren <zhangbr@elab-plus.com>
binren 5 years ago
parent
commit
5dc2f5976f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      flask_app.py

+ 1 - 1
flask_app.py

@@ -128,7 +128,7 @@ def test_api():
 
 @app.route('/testcase_info', methods=['GET', 'POST'])
 def testcase_info():
-    testcase_id = request.args.get('id', default=None, type=str)
+    testcase_id = request.args.get('id', default=None, type=int)
     ti = TestInfo()
     result = ti.test_detail_info(testcase_id)
     return json.dump(result, ensure_ascii=False)