Comment out unused code in CreateTempTables and update_tvupdates methods for future verification; streamline set_apienv function by removing jget parameter and related logic.
This commit is contained in:
@@ -27,8 +27,11 @@ class Dbexec():
|
||||
# Commented out code for applying updates for now. Will re-enable later after downloads are verified.
|
||||
print('Applying updates to table.')
|
||||
with engine.connect() as conn:
|
||||
# conn.execute(text(f"truncate table {tablename}"))
|
||||
# conn.execute(tablename.insert(), updatelist)
|
||||
conn.execute(text(f"truncate table {tablename}"))
|
||||
for key, value in available_updates.items():
|
||||
seriesid = str(key)
|
||||
timestamp = value
|
||||
conn.execute(text(f"INSERT INTO {tablename} (seriesid, timestamp) VALUES (:seriesid, :timestamp)"), {'seriesid': seriesid, 'timestamp': timestamp})
|
||||
conn.commit()
|
||||
print('Update of tvupdates table is complete.')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user