aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-11-22 12:36:14 +0100
committerlonkaars <loek@pipeframe.xyz>2022-11-22 12:36:14 +0100
commitf91c0e78f30676dda2503da45ab325167b1d70a0 (patch)
treedb6d62499029886905075d5a13607f5f661cef85
parentd0051393f3f2b6331a3c1a10b31cee620d9e0abd (diff)
use summary field instead of name field for title
-rwxr-xr-xtrein.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/trein.py b/trein.py
index 4ee5273..a25e8c1 100755
--- a/trein.py
+++ b/trein.py
@@ -37,7 +37,7 @@ def get_disruptions():
def disruption2ical(disruption):
ev = Event()
ev['uid'] = disruption['id']
- ev.add('name', f"{disruption['timespans'][0]['cause']['label']} {disruption['title']}")
+ ev.add('summary', f"{disruption['timespans'][0]['cause']['label']} {disruption['title']}")
description = disruption['expectedDuration']['description'] + "\n\n"
for timespan in disruption['timespans']:
description += timespan['situation']['label'] + "\n\n"