Correction bogue sauter une question
This commit is contained in:
parent
0d99d4f898
commit
5309f07e5b
1 changed files with 3 additions and 5 deletions
8
app.py
8
app.py
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue