Update station based on the DWD id handed over in the beginning
This commit is contained in:
parent
88e67bcd3e
commit
fc952670bb
@ -94,7 +94,7 @@ class DwdScraper:
|
|||||||
else:
|
else:
|
||||||
print("ignored")
|
print("ignored")
|
||||||
|
|
||||||
cur.execute("UPDATE stations SET dwd_last_update = %s WHERE id = %s;", [datetime.datetime.today().isoformat(), curr_station_id])
|
cur.execute("UPDATE stations SET dwd_last_update = %s WHERE dwd_id = %s;", [datetime.datetime.today().isoformat(), last_station])
|
||||||
conn.commit()
|
conn.commit()
|
||||||
|
|
||||||
def get_station_to_update(self):
|
def get_station_to_update(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user