Added duration property to events

This commit is contained in:
Maximilian Giller 2019-03-16 18:50:52 +01:00
parent 1116513539
commit 36cd0bc66d
2 changed files with 2 additions and 0 deletions

View file

@ -3,6 +3,7 @@ class CalendarEvent (object):
def __init__ (self):
self.begin_datetime = None
self.end_datetime = None
self.duration = None
self.all_day = None
self.title = None

View file

@ -45,6 +45,7 @@ class IcalEvents(CalendarInterface):
cal_event.fetch_datetime = datetime.now()
cal_event.begin_datetime = event.begin.datetime
cal_event.end_datetime = event.end.datetime
cal_event.duration = event.duration
cal_event.title = event.name
cal_event.description = event.description
cal_event.location = event.location