Update modules/ui.py
Browse files- modules/ui.py +8 -2
modules/ui.py
CHANGED
@@ -37,14 +37,20 @@ def initialize_session_state():
|
|
37 |
def main():
|
38 |
initialize_session_state()
|
39 |
|
|
|
|
|
|
|
40 |
if st.session_state.page == 'login':
|
41 |
login_register_page()
|
42 |
elif st.session_state.page == 'admin':
|
43 |
-
|
|
|
44 |
elif st.session_state.page == 'user':
|
45 |
user_page()
|
|
|
|
|
46 |
|
47 |
-
print(f"Estado
|
48 |
|
49 |
##################################################################################################
|
50 |
def login_register_page():
|
|
|
37 |
def main():
|
38 |
initialize_session_state()
|
39 |
|
40 |
+
print(f"Página actual: {st.session_state.page}")
|
41 |
+
print(f"Rol del usuario: {st.session_state.role}")
|
42 |
+
|
43 |
if st.session_state.page == 'login':
|
44 |
login_register_page()
|
45 |
elif st.session_state.page == 'admin':
|
46 |
+
print("Intentando mostrar página de admin")
|
47 |
+
admin_page()
|
48 |
elif st.session_state.page == 'user':
|
49 |
user_page()
|
50 |
+
else:
|
51 |
+
print(f"Página no reconocida: {st.session_state.page}")
|
52 |
|
53 |
+
print(f"Estado final de la sesión: {st.session_state}")
|
54 |
|
55 |
##################################################################################################
|
56 |
def login_register_page():
|