From 8b9ab2cd8ed98cc8e1b8454da948929fc959b951 Mon Sep 17 00:00:00 2001 From: Colin Yang Date: Mon, 7 Dec 2020 12:10:05 -0800 Subject: [PATCH] making oncall ical events transparent (#327) so that they don't show up as busy on people's calendar Reference: https://www.kanzaki.com/docs/ical/transp.html --- src/oncall/api/v0/ical.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/oncall/api/v0/ical.py b/src/oncall/api/v0/ical.py index 9d00694..8724153 100644 --- a/src/oncall/api/v0/ical.py +++ b/src/oncall/api/v0/ical.py @@ -60,6 +60,7 @@ def events_to_ical(events, identifier, contact=True): cal_event.add('description', '%s\n' % full_name + ('\n'.join(['%s: %s' % (mode, dest) for mode, dest in user['contacts'].items()]) if contact else '')) + cal_event.add('TRANSP', 'TRANSPARENT') # Attach info about the user oncall attendee = vCalAddress('MAILTO:%s' % (user['contacts'].get('email') if contact else ''))