aboutsummaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-05-30 16:04:46 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-02 08:24:05 +0100
commit2de58c97a5e7d9c0687f66da291c6dc3d37a755a (patch)
tree309fbec784cb12f424503d0b519ab3a943333a37 /bitbake/lib
parentce9cff5b2836ae202c28acc7ca8dda65e14c1d56 (diff)
downloadopenembedded-core-contrib-2de58c97a5e7d9c0687f66da291c6dc3d37a755a.tar.gz
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 <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/mrb_section.html2
1 files changed, 1 insertions, 1 deletions
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 @@
});
</script>
-{%if mru and mru.count > 0%}
+{%if mru %}
{%if mrb_type == 'project' %}
<h2 class="page-header">