Règlages des SMS

This commit is contained in:
2025-10-15 11:00:48 +02:00
parent e1f91660cf
commit e9b85bcf40
4 changed files with 24 additions and 14 deletions

View File

@@ -12,7 +12,10 @@ import pandas as pd
pd.set_option('future.no_silent_downcasting', True)
import streamlit as st
from contextlib import closing
from dotenv import load_dotenv
from dotenv import find_dotenv, load_dotenv
env_file = find_dotenv(usecwd=True)
if env_file:
load_dotenv(env_file)
from fpdf import FPDF
# =========================================================
@@ -45,7 +48,7 @@ def fetch_gyro(site: str):
"""Retourne (etat, ts) depuis la vue v_gyro_last pour le site donné."""
q = """
SELECT Etat, `Date`
FROM v_gyro_last
FROM Sondes.v_gyro_last
WHERE Lieu = %s AND Sonde = 'Gyro'
ORDER BY `Date` DESC
LIMIT 1