From 36cd0bc66d5bee29400c7e5412584d1ee59a8424 Mon Sep 17 00:00:00 2001 From: Max G Date: Sat, 16 Mar 2019 18:50:52 +0100 Subject: [PATCH] Added duration property to events --- Calendar/CalendarEvent.py | 1 + Calendar/IcalEvents.py | 1 + 2 files changed, 2 insertions(+) diff --git a/Calendar/CalendarEvent.py b/Calendar/CalendarEvent.py index fe57669..f5404af 100644 --- a/Calendar/CalendarEvent.py +++ b/Calendar/CalendarEvent.py @@ -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 diff --git a/Calendar/IcalEvents.py b/Calendar/IcalEvents.py index 76e0fb0..c67d8a3 100644 --- a/Calendar/IcalEvents.py +++ b/Calendar/IcalEvents.py @@ -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