Update modules/ui/user_page.py
Browse files- modules/ui/user_page.py +1 -3
modules/ui/user_page.py
CHANGED
@@ -82,7 +82,7 @@ def user_page(lang_code, t):
|
|
82 |
if 'user_data' not in st.session_state:
|
83 |
with st.spinner(t.get('loading_data', "Cargando tus datos...")):
|
84 |
try:
|
85 |
-
st.session_state.user_data =
|
86 |
st.session_state.last_data_fetch = datetime.now(timezone.utc).isoformat()
|
87 |
except Exception as e:
|
88 |
logger.error(f"Error al obtener datos del usuario: {str(e)}")
|
@@ -147,9 +147,7 @@ def user_page(lang_code, t):
|
|
147 |
# Inicializar estados para todos los tabs
|
148 |
if 'tab_states' not in st.session_state:
|
149 |
st.session_state.tab_states = {
|
150 |
-
#'semantic_live_active': False,
|
151 |
'semantic_active': False,
|
152 |
-
#'discourse_live_active': False,
|
153 |
'discourse_active': False,
|
154 |
'activities_active': False,
|
155 |
'feedback_active': False
|
|
|
82 |
if 'user_data' not in st.session_state:
|
83 |
with st.spinner(t.get('loading_data', "Cargando tus datos...")):
|
84 |
try:
|
85 |
+
st.session_state.user_data = get_student_data(st.session_state.username)
|
86 |
st.session_state.last_data_fetch = datetime.now(timezone.utc).isoformat()
|
87 |
except Exception as e:
|
88 |
logger.error(f"Error al obtener datos del usuario: {str(e)}")
|
|
|
147 |
# Inicializar estados para todos los tabs
|
148 |
if 'tab_states' not in st.session_state:
|
149 |
st.session_state.tab_states = {
|
|
|
150 |
'semantic_active': False,
|
|
|
151 |
'discourse_active': False,
|
152 |
'activities_active': False,
|
153 |
'feedback_active': False
|