Spaces:
Runtime error
Runtime error
IsaacKerson
commited on
Commit
•
8de524c
1
Parent(s):
e4310a5
remove form submit from callback
Browse files- pages/quiz.py +2 -2
pages/quiz.py
CHANGED
@@ -14,7 +14,6 @@ def app():
|
|
14 |
DATABASE = os.path.join(BASE_DIR, DATABASE_NAME)
|
15 |
|
16 |
def form_callback(questions):
|
17 |
-
st.session_state.form_submit = True
|
18 |
num_correct = 0
|
19 |
session_id = random_session_id()
|
20 |
student_id = 'UKWN'
|
@@ -92,4 +91,5 @@ def app():
|
|
92 |
st.write("Submitted")
|
93 |
del st.session_state.tags
|
94 |
del st.session_state.num_q
|
95 |
-
del st.session_state.form_submit
|
|
|
|
14 |
DATABASE = os.path.join(BASE_DIR, DATABASE_NAME)
|
15 |
|
16 |
def form_callback(questions):
|
|
|
17 |
num_correct = 0
|
18 |
session_id = random_session_id()
|
19 |
student_id = 'UKWN'
|
|
|
91 |
st.write("Submitted")
|
92 |
del st.session_state.tags
|
93 |
del st.session_state.num_q
|
94 |
+
del st.session_state.form_submit
|
95 |
+
|