From 71dc84bae3f89f2bea02b95883afcbe56689b9d1 Mon Sep 17 00:00:00 2001 From: Michel Date: Sat, 26 Apr 2025 10:21:42 +0200 Subject: [PATCH] "Modifications de domo91 & Monitor" --- domo91.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domo91.py b/domo91.py index 61f3fc8..47f9695 100644 --- a/domo91.py +++ b/domo91.py @@ -291,7 +291,7 @@ if st.session_state["authenticated"]: st.session_state["selected_date"] = selected_date cursor.execute( - f"SELECT * FROM `{site_selectionne}` WHERE DATE(Date) = %s ORDER BY Sonde, Date", + f"SELECT * FROM `{site_selectionne}` WHERE DATE(Date) = %s ORDER BY Sonde, Date DESC", (selected_date.strftime("%Y-%m-%d"),) ) rows = cursor.fetchall()