summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/views.py
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2015-06-23 10:44:42 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-26 09:27:32 +0100
commit8ef5165b5accaffa59a51a2316ed3304680da224 (patch)
treefa244fc802da65c379bfecad8d6f774a8524ed31 /bitbake/lib/toaster/toastergui/views.py
parent5d0abf197a513f09fa980b9aed1a02822639b7f0 (diff)
downloadpoky-8ef5165b5accaffa59a51a2316ed3304680da224.tar.gz
bitbake: toaster: delete multiple builds
This patch fixes the build deletion on unmigrated databases, and enhances it to delete multiple builds in a single run. [YOCTO #7726] (Bitbake rev: d5468d84c1ef83c780de5974c8e3a11eab762489) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py
index 1a504b8455..ec65903080 100755
--- a/bitbake/lib/toaster/toastergui/views.py
+++ b/bitbake/lib/toaster/toastergui/views.py
@@ -64,9 +64,9 @@ def _get_latest_builds(prj=None):
64 if prj is not None: 64 if prj is not None:
65 queryset = queryset.filter(project = prj) 65 queryset = queryset.filter(project = prj)
66 66
67 return itertools.chain( 67 return list(itertools.chain(
68 queryset.filter(outcome=Build.IN_PROGRESS).order_by("-pk"), 68 queryset.filter(outcome=Build.IN_PROGRESS).order_by("-pk"),
69 queryset.filter(outcome__lt=Build.IN_PROGRESS).order_by("-pk")[:3] ) 69 queryset.filter(outcome__lt=Build.IN_PROGRESS).order_by("-pk")[:3] ))
70 70
71 71
72# a JSON-able dict of recent builds; for use in the Project page, xhr_ updates, and other places, as needed 72# a JSON-able dict of recent builds; for use in the Project page, xhr_ updates, and other places, as needed