Fix dates
This commit is contained in:
parent
a2077857e7
commit
6e00dae91b
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ mydb = mysql.connector.connect(auth_plugin='mysql_native_password',
|
||||||
|
|
||||||
cursor = mydb.cursor()
|
cursor = mydb.cursor()
|
||||||
|
|
||||||
date_select = ("SELECT DISTINCT `date` " "FROM weather ")
|
date_select = ("SELECT DISTINCT `date` FROM weather WHERE station = {}".format(station))
|
||||||
s_name = ""
|
s_name = ""
|
||||||
cursor.execute(date_select)
|
cursor.execute(date_select)
|
||||||
dates = cursor.fetchall()
|
dates = cursor.fetchall()
|
||||||
|
|
Loading…
Add table
Reference in a new issue