KurtDu commited on
Commit
831cc69
·
verified ·
1 Parent(s): 1dee20a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -118,7 +118,9 @@ def next_test():
118
  # return jsonify({"message": "No active test found"}), 400
119
 
120
  if 'current_index' not in session or 'test_data' not in session:
121
- return jsonify({"message": "Session data missing", "session": session}), 400
 
 
122
 
123
 
124
  current_index = session['current_index']
 
118
  # return jsonify({"message": "No active test found"}), 400
119
 
120
  if 'current_index' not in session or 'test_data' not in session:
121
+ # 转换 session 为字典避免序列化错误
122
+ print("Debug Session:", dict(session)) # 调试信息
123
+ return jsonify({"message": "Session data missing"}), 400
124
 
125
 
126
  current_index = session['current_index']