From d3212bc980f87bdf7711285d20290fc33a795ee2 Mon Sep 17 00:00:00 2001 From: "peter.fong" Date: Tue, 4 Feb 2025 21:32:47 +0000 Subject: [PATCH] only show forecast> today --- WeatherApp/modules/database.py | 1 + 1 file changed, 1 insertion(+) diff --git a/WeatherApp/modules/database.py b/WeatherApp/modules/database.py index 230bcba..3f4cf14 100644 --- a/WeatherApp/modules/database.py +++ b/WeatherApp/modules/database.py @@ -29,6 +29,7 @@ class Database: AVG(wind_speed) as avg_wind_speed, GROUP_CONCAT(DISTINCT weather_description) as descriptions FROM weather_forecast + WHERE DATE(utc) >= DATE(NOW()) GROUP BY DATE(utc) ORDER BY date ASC """