Fausto Busuito commited on
Commit
5775f49
·
1 Parent(s): d795bcc

Application changes

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -71,6 +71,11 @@ def quiz():
71
 
72
  previous_answers = session['answers'][session['current_question']] if session['current_question'] < len(session['answers']) else []
73
 
 
 
 
 
 
74
  return render_template('quiz.html', question=question,
75
  question_number=session['current_question'] + 1,
76
  total_questions=len(session['questions']),
 
71
 
72
  previous_answers = session['answers'][session['current_question']] if session['current_question'] < len(session['answers']) else []
73
 
74
+ # Debugging statements
75
+ print(f"Current question index: {session['current_question']}")
76
+ print(f"Previous answers: {previous_answers}")
77
+ print(f"Session answers: {session['answers']}")
78
+
79
  return render_template('quiz.html', question=question,
80
  question_number=session['current_question'] + 1,
81
  total_questions=len(session['questions']),