From d63c0320f816f8c9e6523f802c1395085424e6bb Mon Sep 17 00:00:00 2001 From: manetta Date: Sun, 12 Dec 2021 15:28:01 +0100 Subject: [PATCH] simplified the template, moved the data processing to the python script --- LogBot/template.html | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/LogBot/template.html b/LogBot/template.html index 52898e1..5827cef 100644 --- a/LogBot/template.html +++ b/LogBot/template.html @@ -8,17 +8,12 @@

{{ title }}

+ (Follow this log: RSS)
- {% set sorted = [] %} - {% for num in db %} - {% set int_num = num | int %} -
{{ sorted.append(int_num) }}
- {% endfor %} - - {% for num in sorted | sort | reverse %} -
-

{{ num | string }}

-

{{ db[num|string] | href_wrap }}

+ {% for num in sorted_keys | reverse %} +
+

{{ num }}

+

{{ db[num] | href_wrap }}

{% endfor %}