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:
Donald Zou
2025-12-11 07:31:14 +08:00
parent 6fee7da633
commit ec9131ea10

View File

@@ -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')
)
)
)