Browse Source

Fix dates

master
Micke Nordin 1 year ago
parent
commit
6e00dae91b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      aggregateweather.py

+ 1
- 1
aggregateweather.py View File

@@ -86,7 +86,7 @@ mydb = mysql.connector.connect(auth_plugin='mysql_native_password',
86 86
 
87 87
 cursor = mydb.cursor()
88 88
 
89
-date_select = ("SELECT DISTINCT `date` " "FROM weather ")
89
+date_select = ("SELECT DISTINCT `date` FROM weather WHERE station = {}".format(station))
90 90
 s_name = ""
91 91
 cursor.execute(date_select)
92 92
 dates = cursor.fetchall()

Loading…
Cancel
Save