Explorar o código

test_info: 增加接口返回信息

Signed-off-by: binren <zhangbr@elab-plus.com>
binren %!s(int64=5) %!d(string=hai) anos
pai
achega
2ef6d63557
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      test_info.py

+ 2 - 0
test_info.py

@@ -94,6 +94,8 @@ class TestInfo(object):
                 if index == 0:
                     response['testcase_id'] = data[0]
                     response['title'] = data[1]
+                    response['答题人数'] = people
+                    response['完成人数'] = finished
                     if people != 0:
                         response['答题完成率'] = float(finished) / float(people)
                     else: