Refactor update logic in Dbexec class; adjust logging level in settings; enhance JSON downloader function call in update_mongo.py for improved error handling.

This commit is contained in:
2025-12-12 07:46:45 -05:00
parent 097225c942
commit 4f0267ecf2
4 changed files with 9 additions and 9 deletions
+4 -4
View File
@@ -25,12 +25,12 @@ 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:
print('Applying updates to table.')
with engine.connect() as conn:
# conn.execute(text(f"truncate table {tablename}"))
# conn.execute(tablename.insert(), updatelist)
# conn.commit()
# print('Update of tvupdates table is complete.')
conn.commit()
print('Update of tvupdates table is complete.')
def rawsql_select(self, engine, sqlquery, lprint):
session = Session(engine)