mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-12-16 00:16:18 +00:00
Update
This commit is contained in:
@@ -84,7 +84,7 @@ class PeerJobLogger:
|
|||||||
|
|
||||||
def deleteLogs(self, LogID = None, JobID = None):
|
def deleteLogs(self, LogID = None, JobID = None):
|
||||||
with self.engine.begin() as conn:
|
with self.engine.begin() as conn:
|
||||||
print(f"Deleted logs of JobID {JobID}")
|
print(f"[WGDashboard] Deleted stale logs of JobID: {JobID}")
|
||||||
conn.execute(
|
conn.execute(
|
||||||
self.jobLogTable.delete().where(
|
self.jobLogTable.delete().where(
|
||||||
db.and_(
|
db.and_(
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ class PeerJobs:
|
|||||||
self.JobLogger: PeerJobLogger = PeerJobLogger(self, DashboardConfig)
|
self.JobLogger: PeerJobLogger = PeerJobLogger(self, DashboardConfig)
|
||||||
self.WireguardConfigurations = WireguardConfigurations
|
self.WireguardConfigurations = WireguardConfigurations
|
||||||
self.AllPeerShareLinks = AllPeerShareLinks
|
self.AllPeerShareLinks = AllPeerShareLinks
|
||||||
|
self.cleanJob()
|
||||||
|
|
||||||
def __getJobs(self):
|
def __getJobs(self):
|
||||||
self.Jobs.clear()
|
self.Jobs.clear()
|
||||||
|
|||||||
Reference in New Issue
Block a user