This commit is contained in:
Donald Zou
2025-12-02 14:00:53 +08:00
parent 66ffc12864
commit 4756556c82
2 changed files with 2 additions and 2 deletions

View File

@@ -97,4 +97,4 @@ class PeerJobLogger:
def vacuum(self):
with self.engine.begin() as conn:
if conn.dialect.name == 'sqlite':
conn.execute('VACUUM;')
conn.execute(db.text('VACUUM;'))

View File

@@ -209,7 +209,7 @@ class PeerJobs:
if init and conn.dialect.name == 'sqlite':
print("[WGDashboard] SQLite Vacuuming...")
self.JobLogger.vacuum()
conn.execute('VACUUM;')
conn.execute(sqlalchemy.text('VACUUM;'))
def __runJob_Compare(self, x: float | datetime, y: float | datetime, operator: str):
if operator == "eq":