Another non-user calendar (#1123)

* Another non-user calendar

* Simplify identifying non-user calendars
This commit is contained in:
Ross Scroggs
2020-03-21 13:33:46 -07:00
committed by GitHub
parent 0feee6e007
commit 7577e4385c

View File

@@ -35,8 +35,7 @@ def buildCalendarDataGAPIObject(calname):
# admin for authentication. Resource calendars cannot be impersonated,
# so we need to access them as the admin.
cal = None
if (not calname.endswith('@resource.calendar.google.com') and
not calname.endswith('@group.calendar.google.com')):
if not calname.endswith('.calendar.google.com'):
cal = __main__.buildGAPIServiceObject('calendar', calendarId, False)
if cal is None:
_, cal = buildCalendarGAPIObject(__main__._getValueFromOAuth('email'))