Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
|
|
|
|
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']
|