From 040790d61c306a160e4a0bf62b787b305d9f1067 Mon Sep 17 00:00:00 2001 From: Luca Sacchi Ricciardi Date: Sun, 26 Apr 2026 14:46:49 +0200 Subject: [PATCH] fix: accetta PING_INTERVAL_MINUTES in float (minuti decimali) --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 78bca29..e736770 100644 --- a/app.py +++ b/app.py @@ -69,7 +69,7 @@ def load_config() -> Settings: try: db_port = int(os.environ["SUPABASE_DB_PORT"]) - ping_interval = int(os.environ.get("PING_INTERVAL_MINUTES", "4320")) + ping_interval = float(os.environ.get("PING_INTERVAL_MINUTES", "4320")) web_port = int(os.environ.get("WEB_PORT", "8080")) retention_hours = int(os.environ.get("RRD_RETENTION_HOURS", "48")) if ping_interval <= 0 or web_port <= 0 or retention_hours <= 0: @@ -77,7 +77,7 @@ def load_config() -> Settings: except ValueError as exc: raise RuntimeError( "SUPABASE_DB_PORT, PING_INTERVAL_MINUTES, WEB_PORT e " - "RRD_RETENTION_HOURS devono essere interi positivi." + "RRD_RETENTION_HOURS devono essere numeri positivi." ) from exc return Settings(