Skip to content

Commit 5088422

Browse files
committed
Use only static_discovery for Google API
1 parent 2b06428 commit 5088422

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/googleapi.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,13 @@ def save_credentials(self, credentials: str):
383383

384384
def _get_service(self):
385385
if not self._service:
386-
self._service = build("tasks", "v1", credentials=self.get_credentials())
386+
self._service = build(
387+
"tasks",
388+
"v1",
389+
credentials=self.get_credentials(),
390+
cache_discovery=False,
391+
static_discovery=True,
392+
)
387393
return self._service
388394

389395

0 commit comments

Comments
 (0)