This commit is contained in:
Donald Zou
2025-12-02 13:17:24 +08:00
parent 61c9f5aab7
commit bd6d27f282
2 changed files with 2 additions and 1 deletions

View File

@@ -84,7 +84,7 @@ class PeerJobLogger:
def deleteLogs(self, LogID = None, JobID = None):
with self.engine.begin() as conn:
print(f"Deleted logs of JobID {JobID}")
print(f"[WGDashboard] Deleted stale logs of JobID: {JobID}")
conn.execute(
self.jobLogTable.delete().where(
db.and_(

View File

@@ -31,6 +31,7 @@ class PeerJobs:
self.JobLogger: PeerJobLogger = PeerJobLogger(self, DashboardConfig)
self.WireguardConfigurations = WireguardConfigurations
self.AllPeerShareLinks = AllPeerShareLinks
self.cleanJob()
def __getJobs(self):
self.Jobs.clear()