Update station based on the DWD id handed over in the beginning

This commit is contained in:
clerie 2022-02-28 17:25:49 +01:00
parent 88e67bcd3e
commit fc952670bb
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ class DwdScraper:
else:
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()
def get_station_to_update(self):