From d5fcc473865c8fb93f14930bab7fd0a431f22b00 Mon Sep 17 00:00:00 2001 From: Michel Date: Tue, 22 Apr 2025 08:53:32 +0200 Subject: [PATCH] 4 modification --- domo91.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/domo91.py b/domo91.py index 8962c8a..642676c 100644 --- a/domo91.py +++ b/domo91.py @@ -228,7 +228,11 @@ if st.session_state.get("authenticated") and st.session_state.get("role") == "su # --- CONTENU PRINCIPAL SI AUTHENTIFIÉ --- if st.session_state["authenticated"]: - st.markdown("## Sélection du site et de la date") + if st.session_state["role"] == "superviseur": + onglet = st.sidebar.radio("📁 Navigation", ["Accueil", "Statistiques"]) + else: + onglet = "Accueil" + st.markdown("## Sélection du site et de la date") try: conn = mysql.connector.connect(**db_config) cursor = conn.cursor(dictionary=True)