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

View File

@ -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):