mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-12-14 23:46:17 +00:00
Add status filter to job log query
The job log query now filters for entries where Status is 0 or 'false', improving the ability to retrieve logs with specific status values.
This commit is contained in:
@@ -90,6 +90,7 @@ class PeerJobLogger:
|
||||
db.and_(
|
||||
(self.jobLogTable.c.LogID == LogID if LogID is not None else True),
|
||||
(self.jobLogTable.c.JobID == JobID if JobID is not None else True),
|
||||
db.or_(self.jobLogTable.c.Status == 0, self.jobLogTable.c.Status == 'false')
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user