From b8e0903d0d2cb6758cb8b6ba7675d351821f494f Mon Sep 17 00:00:00 2001 From: eclipse Date: Fri, 21 Mar 2025 14:55:24 +0100 Subject: [PATCH] changed list comprehension to jinja filter --- theme/templates/termine.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme/templates/termine.html b/theme/templates/termine.html index 686cc06..9cca6b3 100644 --- a/theme/templates/termine.html +++ b/theme/templates/termine.html @@ -30,7 +30,7 @@ {# loop over all events that have not started yet #} - {% for t in page.termine if t.enddate >= DATETIME_NOW %} + {% for t in page.termine | selectattr("startdate", ">=", DATETIME_NOW) %} {{ t.startdate | strftime(date_format) }}{% if t.enddate %}–{{t.enddate | strftime(date_format) }}{% elif t.starttime %} {{ t.starttime | strftime(time_format) }}{% endif %}
{{ t.location }}