From 6e00dae91b70543dc26bd73b120bc31b519a1a06 Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Sat, 23 May 2020 15:57:33 +0000 Subject: [PATCH] Fix dates --- aggregateweather.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aggregateweather.py b/aggregateweather.py index d4b6881..2eb5aac 100755 --- a/aggregateweather.py +++ b/aggregateweather.py @@ -86,7 +86,7 @@ mydb = mysql.connector.connect(auth_plugin='mysql_native_password', cursor = mydb.cursor() -date_select = ("SELECT DISTINCT `date` " "FROM weather ") +date_select = ("SELECT DISTINCT `date` FROM weather WHERE station = {}".format(station)) s_name = "" cursor.execute(date_select) dates = cursor.fetchall()