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:10:29 +0100 |
commit | f1b49dc4b6fd76f88596b87ac5a14e5f3d265eca (patch) | |
tree | 2e773e8a55631a54f754dd0ba800f2e51cc7934c /bitbake/lib/toaster/toastergui/tables.py | |
parent | 22242ae2213a0b8493cf0962cf639e3ead4e9bc9 (diff) | |
download | poky-f1b49dc4b6fd76f88596b87ac5a14e5f3d265eca.tar.gz |
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>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/tables.py')
-rw-r--r-- | bitbake/lib/toaster/toastergui/tables.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/tables.py b/bitbake/lib/toaster/toastergui/tables.py index 822c7e586c..385d65895d 100644 --- a/bitbake/lib/toaster/toastergui/tables.py +++ b/bitbake/lib/toaster/toastergui/tables.py | |||
@@ -1080,8 +1080,9 @@ class BuildsTable(ToasterTable): | |||
1080 | """ | 1080 | """ |
1081 | queryset = self.get_builds() | 1081 | queryset = self.get_builds() |
1082 | 1082 | ||
1083 | # don't include in progress builds | 1083 | # Don't include in progress builds pr cancelled builds |
1084 | queryset = queryset.exclude(outcome=Build.IN_PROGRESS) | 1084 | queryset = queryset.exclude(Q(outcome=Build.IN_PROGRESS) | |
1085 | Q(outcome=Build.CANCELLED)) | ||
1085 | 1086 | ||
1086 | # sort | 1087 | # sort |
1087 | queryset = queryset.order_by(self.default_orderby) | 1088 | queryset = queryset.order_by(self.default_orderby) |