From 2de58c97a5e7d9c0687f66da291c6dc3d37a755a Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Mon, 30 May 2016 16:04:46 +0300 Subject: bitbake: toaster: don't use mru.count in the template mru is a list. It has a count method, but it differs from the one for the queryset. Using mru.count causes 'Latest project builds' section to silently disappear when toaster runs on python 3. (Bitbake rev: c3ff90c9f028bff5733ebac7b5e72a4688addd3e) Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/templates/mrb_section.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake') diff --git a/bitbake/lib/toaster/toastergui/templates/mrb_section.html b/bitbake/lib/toaster/toastergui/templates/mrb_section.html index 212998a6b2..2780ac591e 100644 --- a/bitbake/lib/toaster/toastergui/templates/mrb_section.html +++ b/bitbake/lib/toaster/toastergui/templates/mrb_section.html @@ -18,7 +18,7 @@ }); -{%if mru and mru.count > 0%} +{%if mru %} {%if mrb_type == 'project' %}