Waffelkalender: confirmed

This commit is contained in:
L3D 2019-02-16 14:31:26 +01:00
parent 3b80295516
commit d549053802
Signed by: l3d
GPG key ID: CD08445BFF4313D1
3 changed files with 4 additions and 4 deletions

View file

@ -175,9 +175,9 @@ description: Wie am letzten Gettogether bereits angekündigt, haben wir vom Chao
---- ----
confirmed: yes confirmed: yes
#### termine #### #### 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 event: Toolbox Weihnachtswaffeln
---- ----

View file

@ -76,7 +76,7 @@
set pages = site.query('/').include_undiscoverable(true).all() %}{% set pages = site.query('/').include_undiscoverable(true).all() %}{%
for page in pages %}{% for page in pages %}{%
if page._model == 'waffeln' and page._path == '/waffeln.ics' %}{% 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') %} if blk.start.strftime('%Y%m%d%H%M') > none|datetimeformat('yyyyMMddhhmm') %}
<tr> <tr>
<th>{% <th>{%

View file

@ -4,7 +4,7 @@ VERSION:2.0
CALSCALE:GREGORIAN CALSCALE:GREGORIAN
PRODID:https://{{ fqdn }}/{{ this._id }} PRODID:https://{{ fqdn }}/{{ this._id }}
METHOD:PUBLISH{% METHOD:PUBLISH{%
for blk in this.termine.blocks %} for blk in this.termine.blocks|sort(attribute='start', reverse = True) %}
BEGIN:VEVENT BEGIN:VEVENT
SUMMARY:{{ blk.event }} SUMMARY:{{ blk.event }}
ORGANIZER;CN="C3 Waffel Operation Center":MAILTO:waffel@{{ fqdn }} ORGANIZER;CN="C3 Waffel Operation Center":MAILTO:waffel@{{ fqdn }}