From 78005e1eb3ae7e2ee97c2001af2a710fa01fbad2 Mon Sep 17 00:00:00 2001 From: peckpeck Date: Fri, 13 Dec 2019 16:55:00 +0100 Subject: [PATCH] Support SEQUENCE in ical events Sequences are used to know when an single event overrides a recurring event --- icalevents/icalparser.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/icalevents/icalparser.py b/icalevents/icalparser.py index 851f693..7aa8a70 100644 --- a/icalevents/icalparser.py +++ b/icalevents/icalparser.py @@ -43,6 +43,7 @@ def __init__(self): self.private = False self.created = None self.last_modified = None + self.sequence = None def time_left(self, time=None): """ @@ -191,6 +192,9 @@ def create_event(component, tz=UTC): elif event.created: event.last_modified = event.created + if component.get('sequence'): + event.sequence = component.get('sequence') + return event