[oe-commits] [bitbake] 17/19: toaster: don't use mru.count in the template

git at git.openembedded.org git at git.openembedded.org
Wed Jun 1 13:14:55 UTC 2016


rpurdie pushed a commit to branch python3
in repository bitbake.

commit 9eec20698efc5aa2e4a9e27107e86fe38ab2a819
Author: Ed Bartosh <ed.bartosh at linux.intel.com>
AuthorDate: Mon May 30 16:04:46 2016 +0300

    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.
    
    Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/toaster/toastergui/templates/mrb_section.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/toaster/toastergui/templates/mrb_section.html b/lib/toaster/toastergui/templates/mrb_section.html
index 212998a..2780ac5 100644
--- a/lib/toaster/toastergui/templates/mrb_section.html
+++ b/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">

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list