Update
parent
66ffc12864
commit
4756556c82
|
|
@ -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":
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue