mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
bitbake: toaster: tables BuildsTable exclude cancelled builds
Exclude cancelled builds from showing in the builds table [YOCTO #6787] (Bitbake rev: a724d6aa7515e712a1d656e46e1d0f3bf7d4cea9) Signed-off-by: Sujith H <sujith.h@gmail.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -1080,8 +1080,9 @@ class BuildsTable(ToasterTable):
|
|||||||
"""
|
"""
|
||||||
queryset = self.get_builds()
|
queryset = self.get_builds()
|
||||||
|
|
||||||
# don't include in progress builds
|
# Don't include in progress builds pr cancelled builds
|
||||||
queryset = queryset.exclude(outcome=Build.IN_PROGRESS)
|
queryset = queryset.exclude(Q(outcome=Build.IN_PROGRESS) |
|
||||||
|
Q(outcome=Build.CANCELLED))
|
||||||
|
|
||||||
# sort
|
# sort
|
||||||
queryset = queryset.order_by(self.default_orderby)
|
queryset = queryset.order_by(self.default_orderby)
|
||||||
|
|||||||
Reference in New Issue
Block a user