From: Sujith H Date: Wed, 6 Apr 2016 16:46:37 +0000 (+0100) Subject: toaster: tables BuildsTable exclude cancelled builds X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a724d6aa7515e712a1d656e46e1d0f3bf7d4cea9;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git toaster: tables BuildsTable exclude cancelled builds Exclude cancelled builds from showing in the builds table [YOCTO #6787] Signed-off-by: Sujith H Signed-off-by: Michael Wood Signed-off-by: Richard Purdie --- diff --git a/lib/toaster/toastergui/tables.py b/lib/toaster/toastergui/tables.py index 822c7e586c9..385d65895d8 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)