kopia lustrzana https://github.com/jazzband/icalevents
Add status event attribute
rodzic
c151e7c1fe
commit
7446b03269
|
@ -50,6 +50,7 @@ class Event:
|
|||
self.attendee = None
|
||||
self.organizer = None
|
||||
self.categories = None
|
||||
self.status = None
|
||||
|
||||
def time_left(self, time=None):
|
||||
"""
|
||||
|
@ -227,6 +228,9 @@ def create_event(component, tz=UTC):
|
|||
encoded_categories.append(encode(category))
|
||||
event.categories = encoded_categories
|
||||
|
||||
if component.get("status"):
|
||||
event.status = component.get("status")
|
||||
|
||||
return event
|
||||
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue