Skip to content

Commit

Permalink
Edit filename
Browse files Browse the repository at this point in the history
  • Loading branch information
sookcha authored Feb 8, 2018
1 parent a6801ae commit 0c71b23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def get_calendar(self, timetable, start_date, end_date):
event.add('rrule', {'freq': 'WEEKLY', 'until': parser.parse(end_date)})
cal.add_component(event)

f = open(os.path.join('', 'example.ics'), 'wb')
f = open(os.path.join('', 'calendar.ics'), 'wb')
f.write(cal.to_ical())
f.close()

Expand All @@ -69,4 +69,4 @@ def get_nearest_date(self, start_date, weekday):
else:
start_date += datetime.timedelta(weekday - start_date.weekday())

return start_date
return start_date

0 comments on commit 0c71b23

Please sign in to comment.