From: Belen Barros Pena Date: Thu, 9 Jun 2016 10:53:20 +0000 (+0100) Subject: toaster: BuildTasksTable filters remove outcome NA option X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e21817b0d7a91e634bdb2069850627c38fde053;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git toaster: BuildTasksTable filters remove outcome NA option In the 'outcome' filter for tasks, remove the 'not applicable' option, since it should not be exposed to users. Signed-off-by: Belen Barros Pena Signed-off-by: Michael Wood --- diff --git a/lib/toaster/toastergui/buildtables.py b/lib/toaster/toastergui/buildtables.py index 4edd0e86c40..f3d7236ae66 100644 --- a/lib/toaster/toastergui/buildtables.py +++ b/lib/toaster/toastergui/buildtables.py @@ -389,6 +389,8 @@ class BuildTasksTable(BuildTablesMixin): title="Filter Task by 'Outcome'") for outcome_enum, title in Task.TASK_OUTCOME: + if outcome_enum is Task.OUTCOME_NA: + continue action = TableFilterActionToggle( title.replace(" ", "_").lower(), "%s Tasks" % title,