Correction bogue sauter une question

This commit is contained in:
François Pelletier 2023-06-18 16:06:01 -04:00
parent 0d99d4f898
commit 5309f07e5b

8
app.py
View file

@ -64,11 +64,9 @@ with st.form("answer_form"):
# Display the correct answer
if st.form_submit_button(label="Vérifier") and ss.selected_answer != "---":
check_answer()
# Reset button to load a new question
if st.button("Question suivante"):
ss.selected_answer = "---"
select_question()
if st.form_submit_button(label="Prochaine question"):
ss.clear()
select_question()
# Pied de page
footer_content = Path("donnees/footer.md").read_text()
st.markdown(footer_content, unsafe_allow_html=True)