Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Add PRODID and VERSION to .ics exports #344

Merged
merged 1 commit into from
Mar 23, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions server/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ def render_schedule_ical_feed(profile_user_secret_id):
course_name_map = {c['id']: c['name'] for c in limited_course_list}

cal = icalendar.Calendar()
# The following two properties are *required* to be conformant
cal.add('version', '2.0')
cal.add('prodid', '-//UW FLOW//%s//EN' % profile_user_secret_id)
cal.add('x-wr-calname', 'uwflow.com schedule')
cal.add('x-wr-caldesc', 'Schedule exported from https://uwflow.com')

Expand Down