From 3b58455836f00cfb420af0331f7ca610ed66684b Mon Sep 17 00:00:00 2001 From: DEENUU1 Date: Wed, 24 Jan 2024 00:59:49 +0100 Subject: [PATCH] Update default authentication_flow_host --- app/ai/integration/google_calendar.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/ai/integration/google_calendar.py b/app/ai/integration/google_calendar.py index c3cb4f3..2a99bf9 100644 --- a/app/ai/integration/google_calendar.py +++ b/app/ai/integration/google_calendar.py @@ -6,7 +6,12 @@ class Calendar: def __init__(self) -> None: - self._calendar = GoogleCalendar(settings.GOOGLE_CALENDAR_EMAIL, credentials_path="credentials.json", authentication_flow_port=8081) + self._calendar = GoogleCalendar( + settings.GOOGLE_CALENDAR_EMAIL, + credentials_path="credentials.json", + authentication_flow_port=8081, + authentication_flow_host="0.0.0.0" + ) self._calendar_ids = settings.GOOGLE_CALENDARS self.debug: bool = settings.GOOGLE_CALENDAR_DEBUG