Sina Media Lab commited on
Commit
4b264b4
Β·
1 Parent(s): 1fe6266
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -62,7 +62,7 @@ def generate_pdf_report():
62
  if option == correct:
63
  pdf.set_text_color(0, 128, 0) # Green for correct
64
  pdf.multi_cell(0, 10, f"{option}")
65
- elif option was selected:
66
  pdf.set_text_color(255, 0, 0) # Red for incorrect
67
  pdf.multi_cell(0, 10, f"{option}")
68
  else:
@@ -215,7 +215,7 @@ if current_question.get('answered', False):
215
  for option in current_question['options']:
216
  if option == current_question['correct_answer']:
217
  st.markdown(f"<span style='color:green;'>{option} βœ…</span>", unsafe_allow_html=True)
218
- elif option was selected:
219
  st.markdown(f"<span style='color:red;'>{option} ❌</span>", unsafe_allow_html=True)
220
  else:
221
  st.markdown(f"{option}")
 
62
  if option == correct:
63
  pdf.set_text_color(0, 128, 0) # Green for correct
64
  pdf.multi_cell(0, 10, f"{option}")
65
+ elif option == selected:
66
  pdf.set_text_color(255, 0, 0) # Red for incorrect
67
  pdf.multi_cell(0, 10, f"{option}")
68
  else:
 
215
  for option in current_question['options']:
216
  if option == current_question['correct_answer']:
217
  st.markdown(f"<span style='color:green;'>{option} βœ…</span>", unsafe_allow_html=True)
218
+ elif option == current_question['selected']:
219
  st.markdown(f"<span style='color:red;'>{option} ❌</span>", unsafe_allow_html=True)
220
  else:
221
  st.markdown(f"{option}")