Skip to content

Commit

Permalink
Merge pull request #63 from peckpeck/patch-1
Browse files Browse the repository at this point in the history
Support SEQUENCE in ical events
  • Loading branch information
irgangla authored Jan 18, 2020
2 parents 7a2969e + 78005e1 commit 6d90709
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions icalevents/icalparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down Expand Up @@ -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


Expand Down

0 comments on commit 6d90709

Please sign in to comment.