Skip to content

Commit

Permalink
Check the default port for Calendar server
Browse files Browse the repository at this point in the history
  • Loading branch information
DEENUU1 committed Jan 23, 2024
1 parent 442bdd2 commit 374f647
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
app/sqlite.db
app/media/
credentials.json
app/credentials.json
app/token.pickle

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
2 changes: 1 addition & 1 deletion app/ai/integration/google_calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class Calendar:

def __init__(self) -> None:
self._calendar = GoogleCalendar(settings.GOOGLE_CALENDAR_EMAIL, credentials_path="credentials.json")
self._calendar = GoogleCalendar(settings.GOOGLE_CALENDAR_EMAIL, credentials_path="credentials.json", authentication_flow_port=8081)
self._calendar_ids = settings.GOOGLE_CALENDARS
self.debug: bool = settings.GOOGLE_CALENDAR_DEBUG

Expand Down
1 change: 1 addition & 0 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
def startup_event() -> None:
"""
On app start check if 'media' directory exists and if not create it
Create credentials.json file
"""
if not os.path.exists("media"):
print("Create media directory")
Expand Down

0 comments on commit 374f647

Please sign in to comment.