kopia lustrzana https://github.com/jazzband/icalevents
Add url event attribute
rodzic
7446b03269
commit
d92a2eb735
|
@ -51,6 +51,7 @@ class Event:
|
||||||
self.organizer = None
|
self.organizer = None
|
||||||
self.categories = None
|
self.categories = None
|
||||||
self.status = None
|
self.status = None
|
||||||
|
self.url = None
|
||||||
|
|
||||||
def time_left(self, time=None):
|
def time_left(self, time=None):
|
||||||
"""
|
"""
|
||||||
|
@ -142,6 +143,7 @@ class Event:
|
||||||
ne.created = self.created
|
ne.created = self.created
|
||||||
ne.last_modified = self.last_modified
|
ne.last_modified = self.last_modified
|
||||||
ne.categories = self.categories
|
ne.categories = self.categories
|
||||||
|
ne.url = self.url
|
||||||
|
|
||||||
return ne
|
return ne
|
||||||
|
|
||||||
|
@ -231,6 +233,9 @@ def create_event(component, tz=UTC):
|
||||||
if component.get("status"):
|
if component.get("status"):
|
||||||
event.status = component.get("status")
|
event.status = component.get("status")
|
||||||
|
|
||||||
|
if component.get("url"):
|
||||||
|
event.url = component.get("url")
|
||||||
|
|
||||||
return event
|
return event
|
||||||
|
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue