Spaces:
Sleeping
Sleeping
Commit
·
8bc5bae
1
Parent(s):
020091c
time fix tweaks
Browse files- pages/llm_tutor.py +1 -0
- pages/presurvey.py +2 -0
- pages/textbook.py +1 -0
pages/llm_tutor.py
CHANGED
|
@@ -109,4 +109,5 @@ if next_btn:
|
|
| 109 |
print(time.time())
|
| 110 |
print(st.session_state.tutor_start_time)
|
| 111 |
push_study_time_data(time.time() - st.session_state.tutor_start_time)
|
|
|
|
| 112 |
st.switch_page("pages/postquiz.py")
|
|
|
|
| 109 |
print(time.time())
|
| 110 |
print(st.session_state.tutor_start_time)
|
| 111 |
push_study_time_data(time.time() - st.session_state.tutor_start_time)
|
| 112 |
+
st.session_state.postquiz_start_time = time.time()
|
| 113 |
st.switch_page("pages/postquiz.py")
|
pages/presurvey.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
from utils.firebase_util import push_presurvey_data
|
|
|
|
| 3 |
|
| 4 |
st.title("Pre-Survey")
|
| 5 |
st.write("Please take this short survey:")
|
|
@@ -24,4 +25,5 @@ submit_btn = st.button("Submit")
|
|
| 24 |
|
| 25 |
if submit_btn:
|
| 26 |
push_presurvey_data(q1, q2, q3, q3_other)
|
|
|
|
| 27 |
st.switch_page("pages/prequiz.py")
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
from utils.firebase_util import push_presurvey_data
|
| 3 |
+
import time
|
| 4 |
|
| 5 |
st.title("Pre-Survey")
|
| 6 |
st.write("Please take this short survey:")
|
|
|
|
| 25 |
|
| 26 |
if submit_btn:
|
| 27 |
push_presurvey_data(q1, q2, q3, q3_other)
|
| 28 |
+
st.session_state.prequiz_start_time = time.time()
|
| 29 |
st.switch_page("pages/prequiz.py")
|
pages/textbook.py
CHANGED
|
@@ -34,6 +34,7 @@ if next_page:
|
|
| 34 |
print(time.time())
|
| 35 |
print(st.session_state.textbook_start_time)
|
| 36 |
push_study_time_data(time.time() - st.session_state.textbook_start_time)
|
|
|
|
| 37 |
st.switch_page("pages/postquiz.py")
|
| 38 |
|
| 39 |
|
|
|
|
| 34 |
print(time.time())
|
| 35 |
print(st.session_state.textbook_start_time)
|
| 36 |
push_study_time_data(time.time() - st.session_state.textbook_start_time)
|
| 37 |
+
st.session_state.postquiz_start_time = time.time()
|
| 38 |
st.switch_page("pages/postquiz.py")
|
| 39 |
|
| 40 |
|