From 5309f07e5b9610c24463fd7a42f9e5b81b4f4383 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Pelletier?= Date: Sun, 18 Jun 2023 16:06:01 -0400 Subject: [PATCH] Correction bogue sauter une question --- app.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app.py b/app.py index e880387..c165daa 100644 --- a/app.py +++ b/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)