fixing event.py
This commit is contained in:
1 parent
d54246f4b5
commit
7452721cfd
1 file changed
+1
-1
@@ -14,4 +14,4 @@ class Event(object):
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def get_from_gcal_api_json(json):
|
def get_from_gcal_api_json(json):
|
||||||
print(json['start'].get('dateTime') )
|
print(json['start'].get('dateTime') )
|
||||||
return Event(json['summary'], parse(json['start'].get('dateTime')), parse(json['end'].get('dateTime')))
|
return Event(json['summary'] if 'summary' in json else "No Title" , parse(json['start'].get('dateTime')), parse(json['end'].get('dateTime')))
|
||||||
Reference in new issue
Block a user