From f91c0e78f30676dda2503da45ab325167b1d70a0 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Tue, 22 Nov 2022 12:36:14 +0100 Subject: use summary field instead of name field for title --- trein.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.2.3