Add url event attribute

pull/92/head
AndCycle 2020-06-10 22:25:56 +08:00 zatwierdzone przez Brian Hartvigsen
rodzic 7446b03269
commit d92a2eb735
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 61B372B8BA3D83E1
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -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