Browse Source

test_info: 代码逻辑调整

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

+ 1 - 1
test_info.py

@@ -113,7 +113,7 @@ class TestInfo(object):
                 for th in others_data:
                     sub_option.append([th[2], th[3], th[4]])
                 sub_question['option'] = sub_option
-                sub_option.append(sub_question)
+                sub_question_data.append(sub_question)
             response['答题结果统计'] = sub_question_data
         except Exception as e:
             response['error'] = str(e)