diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-11-22 12:36:14 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-11-22 12:36:14 +0100 |
commit | f91c0e78f30676dda2503da45ab325167b1d70a0 (patch) | |
tree | db6d62499029886905075d5a13607f5f661cef85 | |
parent | d0051393f3f2b6331a3c1a10b31cee620d9e0abd (diff) |
use summary field instead of name field for title
-rwxr-xr-x | trein.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" |