diff options
author | Sujith H <sujith.h@gmail.com> | 2016-04-06 17:46:37 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-04-06 23:00:10 +0100 |
commit | a724d6aa7515e712a1d656e46e1d0f3bf7d4cea9 (patch) | |
tree | 528cac8d8e6a5ddfa47f55f79fb769f775b0a852 | |
parent | d94d12914d351bf560b06d6f4e45c294b04ecaa3 (diff) | |
download | bitbake-a724d6aa7515e712a1d656e46e1d0f3bf7d4cea9.tar.gz |
toaster: tables BuildsTable exclude cancelled builds
Exclude cancelled builds from showing in the builds table
[YOCTO #6787]
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>
-rw-r--r-- | lib/toaster/toastergui/tables.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/toaster/toastergui/tables.py b/lib/toaster/toastergui/tables.py index 822c7e586..385d65895 100644 --- a/lib/toaster/toastergui/tables.py +++ b/lib/toaster/toastergui/tables.py @@ -1080,8 +1080,9 @@ class BuildsTable(ToasterTable): """ queryset = self.get_builds() - # don't include in progress builds - queryset = queryset.exclude(outcome=Build.IN_PROGRESS) + # Don't include in progress builds pr cancelled builds + queryset = queryset.exclude(Q(outcome=Build.IN_PROGRESS) | + Q(outcome=Build.CANCELLED)) # sort queryset = queryset.order_by(self.default_orderby) |