Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 0B3D3E00D2F; Thu, 25 Feb 2016 10:21:42 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 9188AE00D0E for ; Thu, 25 Feb 2016 10:21:38 -0800 (PST) Received: by mail-wm0-f49.google.com with SMTP id c200so41264566wme.0 for ; Thu, 25 Feb 2016 10:21:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DXj31OHzPdfc9EM4Z6AdxMlzPyJRnl1N5yCSYtAThjw=; b=nSlfj4Ec5IdpZcDsxS2VDfpO4ECg1IJFRdAolgliN0rwPQUjxxDdoUD4TBF+b/OAKp Tso4z6zrNQA8FfPHgcs93LepMiITQGglce5Q200NYuXQKsY4glRRegjjvQnKyuGZRCzj EsEeDldoUPTFpLQp8mNOIgmmw9VQRVriMmN3aB7+3HHBOgVUHOELWxkxX3daerYa+7KG FZ2/Q7imozuMIwQM/V6J/wu9WRl4GCqpNZt56Se0bu5mglzR2VmDXe5WgE9TOyQIZncJ 6nwn1arFQEI0ErGcyAH6jrBtCHVG0Ag4/CLrRmZbc+nyuclNAkkE5ZEb4Yz/TxJVDSu5 fYLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=DXj31OHzPdfc9EM4Z6AdxMlzPyJRnl1N5yCSYtAThjw=; b=OOHJFHnHl9KdRY739RQmPoQRk4l/pA4KAYPE9gHTfsjdtlOWPIXRfeeoVjbea9o9Ze jtXA8HvplyYttN0Mb8x/XxCZX4q8Z6MNwV6Fn8Eca5jIPUAlC63EVEkAKv2wAp26i+GN jHVlXql7J9azeHsxA4Hrvs59BGVBGtH+9J2Rr8/PIdj29FL4u0yJvlrmXbClW/gMNfW5 2kKYp0O7kkxTQxhmnikitow1LsIvpYIRsCksw2h/LDczGscZU2mUK9vzw37PMd43dC3o Le+33VeUlPq0z3KCngQDMhylMpMTsw0hlv3CgOoZkTSuAHTjPh3ejK54zZd1168njPpf rd6w== X-Gm-Message-State: AG10YORS/QbhSoPZqmmGxl5ZGjEu7jg2fItioOAHIIcCBzpo2AFLUCrG6UTiPVoQvqCejLJy X-Received: by 10.28.73.66 with SMTP id w63mr42466wma.53.1456424497442; Thu, 25 Feb 2016 10:21:37 -0800 (PST) Received: from draco.icx.intel.com ([83.217.123.106]) by smtp.gmail.com with ESMTPSA id az8sm3084010wjc.17.2016.02.25.10.21.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 Feb 2016 10:21:36 -0800 (PST) From: Michael Wood To: toaster@yoctoproject.org Date: Thu, 25 Feb 2016 18:21:23 +0000 Message-Id: <1456424485-6566-10-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1456424485-6566-1-git-send-email-michael.g.wood@intel.com> References: <1456424485-6566-1-git-send-email-michael.g.wood@intel.com> Subject: [PATCH 09/11] toaster: tables BuildsTable exclude cancelled builds X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Feb 2016 18:21:42 -0000 From: Sujith H Exclude cancelled builds from showing in the builds table [YOCTO #6787] Signed-off-by: Sujith H --- bitbake/lib/toaster/toastergui/tables.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/tables.py b/bitbake/lib/toaster/toastergui/tables.py index 0cda459..e507730 100644 --- a/bitbake/lib/toaster/toastergui/tables.py +++ b/bitbake/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) -- 2.1.4