4 modification
This commit is contained in:
@@ -228,7 +228,11 @@ if st.session_state.get("authenticated") and st.session_state.get("role") == "su
|
|||||||
|
|
||||||
# --- CONTENU PRINCIPAL SI AUTHENTIFIÉ ---
|
# --- CONTENU PRINCIPAL SI AUTHENTIFIÉ ---
|
||||||
if st.session_state["authenticated"]:
|
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:
|
try:
|
||||||
conn = mysql.connector.connect(**db_config)
|
conn = mysql.connector.connect(**db_config)
|
||||||
cursor = conn.cursor(dictionary=True)
|
cursor = conn.cursor(dictionary=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user