From b3e76d35c0680ce0403c679c421d72ddc94d3ee1 Mon Sep 17 00:00:00 2001 From: heechun Date: Wed, 31 Aug 2022 05:54:27 +0900 Subject: [PATCH] =?UTF-8?q?feature:=20=EA=B0=95=EC=9D=98=EC=8B=A4=20?= =?UTF-8?q?=EC=A0=95=EB=B3=B4=EA=B0=80=20=EC=9E=88=EB=8A=94=20=EA=B2=BD?= =?UTF-8?q?=EC=9A=B0=20location=EC=9D=84=20icalender=EC=97=90=20=EC=A0=80?= =?UTF-8?q?=EC=9E=A5=ED=95=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- convert.py | 2 ++ 1 file changed, 2 insertions(+) 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')