From d549053802c72d60518837aabc3734fb4f01be95 Mon Sep 17 00:00:00 2001 From: L3D Date: Sat, 16 Feb 2019 14:31:26 +0100 Subject: [PATCH] Waffelkalender: confirmed --- content/waffeln.ics/contents.lr | 4 ++-- templates/start.html | 2 +- templates/waffeln.ics | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/content/waffeln.ics/contents.lr b/content/waffeln.ics/contents.lr index a9c7473..2fc2fbd 100644 --- a/content/waffeln.ics/contents.lr +++ b/content/waffeln.ics/contents.lr @@ -175,9 +175,9 @@ description: Wie am letzten Gettogether bereits angekündigt, haben wir vom Chao ---- confirmed: yes #### termine #### -start: 2019-12-13 18:00:00 Europe/Berlin +start: 2018-12-13 18:00:00 Europe/Berlin ---- -ende: 2019-12-13 23:42:23 Europe/Berlin +ende: 2018-12-13 23:42:23 Europe/Berlin ---- event: Toolbox Weihnachtswaffeln ---- diff --git a/templates/start.html b/templates/start.html index d617001..a8c70bb 100644 --- a/templates/start.html +++ b/templates/start.html @@ -76,7 +76,7 @@ set pages = site.query('/').include_undiscoverable(true).all() %}{% for page in pages %}{% if page._model == 'waffeln' and page._path == '/waffeln.ics' %}{% - for blk in page.termine.blocks %}{% + for blk in page.termine.blocks|sort(attribute='start', reverse = False) %}{% if blk.start.strftime('%Y%m%d%H%M') > none|datetimeformat('yyyyMMddhhmm') %} {% diff --git a/templates/waffeln.ics b/templates/waffeln.ics index 69dc632..24bd557 100644 --- a/templates/waffeln.ics +++ b/templates/waffeln.ics @@ -4,7 +4,7 @@ VERSION:2.0 CALSCALE:GREGORIAN PRODID:https://{{ fqdn }}/{{ this._id }} METHOD:PUBLISH{% - for blk in this.termine.blocks %} + for blk in this.termine.blocks|sort(attribute='start', reverse = True) %} BEGIN:VEVENT SUMMARY:{{ blk.event }} ORGANIZER;CN="C3 Waffel Operation Center":MAILTO:waffel@{{ fqdn }}