summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templatetags/projecttags.py
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-05-20 00:34:56 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-05-29 11:59:45 +0100
commit52fe880f9ec46c41d6afdfb275185768c0bb8db9 (patch)
treef9aa1efb0c17a4b720b17ecb95a5200719215336 /bitbake/lib/toaster/toastergui/templatetags/projecttags.py
parent6fab4cb701cc67db9fd18c30a60fed2483831667 (diff)
downloadpoky-52fe880f9ec46c41d6afdfb275185768c0bb8db9.tar.gz
bitbake: toastergui: Consider task name when restarting a build in /builds
Previously the same issue was fixed for project view. 'Run again' button now restarts builds using target:task also in builds view. [YOCTO #7442] (Bitbake rev: ae6349a13f11b6fa90fe5603b000bef14ee0f2f0) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templatetags/projecttags.py')
-rw-r--r--bitbake/lib/toaster/toastergui/templatetags/projecttags.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/toastergui/templatetags/projecttags.py b/bitbake/lib/toaster/toastergui/templatetags/projecttags.py
index 1bc3bc2319..8028ae0022 100644
--- a/bitbake/lib/toaster/toastergui/templatetags/projecttags.py
+++ b/bitbake/lib/toaster/toastergui/templatetags/projecttags.py
@@ -44,9 +44,10 @@ def sectohms(time):
44 return "%02d:%02d:%02d" % (hours, int((tdsec - (hours * 3600))/ 60), int(tdsec) % 60) 44 return "%02d:%02d:%02d" % (hours, int((tdsec - (hours * 3600))/ 60), int(tdsec) % 60)
45 45
46 46
47@register.filter(name = 'mapselect') 47@register.filter(name = 'get_tasks')
48def mapselect(value, argument): 48def get_tasks(queryset):
49 return map(lambda x: vars(x)[argument], value) 49 return list(target + ':' + task if task else target \
50 for target, task in queryset.values_list('target', 'task'))
50 51
51 52
52@register.filter(name = "json") 53@register.filter(name = "json")