[gnome-continuous-yocto/gnomeostree-3.28-rocko: 646/8267] bitbake: toaster: don't use mru.count in the template



commit 2de58c97a5e7d9c0687f66da291c6dc3d37a755a
Author: Ed Bartosh <ed bartosh linux intel com>
Date:   Mon May 30 16:04:46 2016 +0300

    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>

 .../toaster/toastergui/templates/mrb_section.html  |    2 +-
 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 212998a..2780ac5 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">


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]