theodotus commited on
Commit
10482e4
·
1 Parent(s): c37fa3d

Fix 0 answes addition

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -18,7 +18,8 @@ def question_interface(question_state, answer):
18
  question_state["value"] += 1
19
  current_question_index = question_state["value"]
20
 
21
- question_state["responses"].append(answer)
 
22
 
23
  # Check if all questions have been answered
24
  if current_question_index == len(test):
 
18
  question_state["value"] += 1
19
  current_question_index = question_state["value"]
20
 
21
+ if (current_question_index != 0):
22
+ question_state["responses"].append(answer)
23
 
24
  # Check if all questions have been answered
25
  if current_question_index == len(test):