diff --git a/convert.py b/convert.py index 66c0227..4f29191 100644 --- a/convert.py +++ b/convert.py @@ -51,6 +51,8 @@ def get_calendar(self, timetable, start_date, end_date): event.add('dtstart', parser.parse("%s %s" % (self.get_nearest_date(start_date, time["day"]), time["startAt"]))) event.add('dtend', parser.parse("%s %s" % (self.get_nearest_date(start_date, time["day"]), time["endAt"]))) event.add('rrule', {'freq': 'WEEKLY', 'until': parser.parse(end_date)}) + if time["place"] != "": + event.add('location', time["place"]) cal.add_component(event) f = open(os.path.join('', 'calendar.ics'), 'wb')