fix: Ensure Google Calendar scopes is a List (#22333)

This commit is contained in:
Corentin Flr 2023-09-11 14:34:22 +02:00 committed by GitHub
parent 3e8a192828
commit 8882679357
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -214,7 +214,7 @@ def get_google_calendar_object(g_calendar):
"token_uri": GoogleOAuth.OAUTH_URL,
"client_id": google_settings.client_id,
"client_secret": google_settings.get_password(fieldname="client_secret", raise_exception=False),
"scopes": "https://www.googleapis.com/auth/calendar/v3",
"scopes": ["https://www.googleapis.com/auth/calendar/v3"],
}
credentials = google.oauth2.credentials.Credentials(**credentials_dict)