Sina Media Lab
commited on
Commit
Β·
4b264b4
1
Parent(s):
1fe6266
Updates
Browse files
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
|
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
|
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}")
|