From 0b712ef7f308f297751abcb78a1d9cc2fac6fdd3 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Sat, 21 Nov 2020 12:52:30 +1100 Subject: [PATCH] cleanup, and dont need to calculate 12/cols, just use col --- templates/book.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/book.html b/templates/book.html index c085d80..dfa89c7 100644 --- a/templates/book.html +++ b/templates/book.html @@ -37,7 +37,7 @@
{% if books[key] is iterable and books[key] is not string %} -
+
{% set cnt = namespace(idx=0, val=0) %} {% for objects in books[key] %} {% set cnt.val = 0 %} @@ -52,7 +52,7 @@ {% set cnt.val = cnt.val + 1 %} {% endif %} {% endfor %} - + {{str.val}} {% set cnt.idx = cnt.idx+1 %}