mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-12-16 08:26:17 +00:00
Update
This commit is contained in:
@@ -97,4 +97,4 @@ class PeerJobLogger:
|
|||||||
def vacuum(self):
|
def vacuum(self):
|
||||||
with self.engine.begin() as conn:
|
with self.engine.begin() as conn:
|
||||||
if conn.dialect.name == 'sqlite':
|
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':
|
if init and conn.dialect.name == 'sqlite':
|
||||||
print("[WGDashboard] SQLite Vacuuming...")
|
print("[WGDashboard] SQLite Vacuuming...")
|
||||||
self.JobLogger.vacuum()
|
self.JobLogger.vacuum()
|
||||||
conn.execute('VACUUM;')
|
conn.execute(sqlalchemy.text('VACUUM;'))
|
||||||
|
|
||||||
def __runJob_Compare(self, x: float | datetime, y: float | datetime, operator: str):
|
def __runJob_Compare(self, x: float | datetime, y: float | datetime, operator: str):
|
||||||
if operator == "eq":
|
if operator == "eq":
|
||||||
|
|||||||
Reference in New Issue
Block a user