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