summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/views.py
diff options
context:
space:
mode:
authorElliot Smith <elliot.smith@intel.com>2015-09-04 10:37:45 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-18 09:05:35 +0100
commit047245fff43909965ff3df6b23602b5716ed7a21 (patch)
tree41ee477829488da7869effdede09be06d3fa4348 /bitbake/lib/toaster/toastergui/views.py
parent5528f3a8fd3c4839b8b1b3976d4dc1b26ffa7458 (diff)
downloadpoky-047245fff43909965ff3df6b23602b5716ed7a21.tar.gz
bitbake: toaster: Show correct builds count on project pages
The counter for completed builds on the project pages includes builds in progress. Instead use the completedbuilds queryset to count the number of completed builds for display on project pages. Modify how the completedbuilds queryset is constructed so it only excludes builds with status "in progress". (Bitbake rev: 455a0087e0dcd74998abd02a110942f25da127be) Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: brian avery <avery.brian@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/views.py')
-rwxr-xr-xbitbake/lib/toaster/toastergui/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py
index 45a5611724..67c84b2934 100755
--- a/bitbake/lib/toaster/toastergui/views.py
+++ b/bitbake/lib/toaster/toastergui/views.py
@@ -2263,7 +2263,7 @@ if True:
2263 context = { 2263 context = {
2264 "project" : prj, 2264 "project" : prj,
2265 "lvs_nos" : Layer_Version.objects.all().count(), 2265 "lvs_nos" : Layer_Version.objects.all().count(),
2266 "completedbuilds": Build.objects.filter(project_id = pid).filter(outcome__lte = Build.IN_PROGRESS), 2266 "completedbuilds": Build.objects.exclude(outcome = Build.IN_PROGRESS).filter(project_id = pid),
2267 "prj" : {"name": prj.name, }, 2267 "prj" : {"name": prj.name, },
2268 "buildrequests" : prj.build_set.filter(outcome=Build.IN_PROGRESS), 2268 "buildrequests" : prj.build_set.filter(outcome=Build.IN_PROGRESS),
2269 "builds" : _project_recent_build_list(prj), 2269 "builds" : _project_recent_build_list(prj),