1
0
mirror of https://github.com/linkedin/oncall.git synced 2025-11-27 23:18:38 +02:00

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
This commit is contained in:
Colin Yang
2020-12-07 12:10:05 -08:00
committed by GitHub
parent 927caaa7fc
commit 8b9ab2cd8e

View File

@@ -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 ''))