changed list comprehension to jinja filter

This commit is contained in:
eclipse 2025-03-21 14:55:24 +01:00
parent 61748d313c
commit b8e0903d0d

View File

@ -30,7 +30,7 @@
</thead>
<tbody>
{# 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) %}
<tr>
<td class="event-info"><strong>{{ t.startdate | strftime(date_format) }}{% if t.enddate %}{{t.enddate | strftime(date_format) }}{% elif t.starttime %} {{ t.starttime | strftime(time_format) }}{% endif %}</strong><br>{{ t.location }}</td>
<td class="event-detail">