[oe-commits] [bitbake] 27/45: toaster: tables BuildsTable exclude cancelled builds

git at git.openembedded.org git at git.openembedded.org
Wed Apr 6 22:11:45 UTC 2016


rpurdie pushed a commit to branch master
in repository bitbake.

commit a724d6aa7515e712a1d656e46e1d0f3bf7d4cea9
Author: Sujith H <sujith.h at gmail.com>
AuthorDate: Wed Apr 6 17:46:37 2016 +0100

    toaster: tables BuildsTable exclude cancelled builds
    
    Exclude cancelled builds from showing in the builds table
    
    [YOCTO #6787]
    
    Signed-off-by: Sujith H <sujith.h at gmail.com>
    Signed-off-by: Michael Wood <michael.g.wood at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/toaster/toastergui/tables.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/toaster/toastergui/tables.py b/lib/toaster/toastergui/tables.py
index 822c7e5..385d658 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)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list