mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-12-14 15:36:18 +00:00
Update
This commit is contained in:
@@ -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;'))
|
||||
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user