Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions gcal/gcal.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ class GcalHelper:
def __init__(self):
# Initialise the Google Calendar using the provided credentials and token
SCOPES = ['https://www.googleapis.com/auth/calendar.readonly']
self.currPath = str(pathlib.Path(__file__).parent.absolute())
print(self.currPath)
print(self.currPath := str(pathlib.Path(__file__).parent.absolute()))
creds = None
# The file token.pickle stores the user's access and refresh tokens, and is
# created automatically when the authorization flow completes for the first
Expand Down Expand Up @@ -71,8 +70,7 @@ def retrieve_events(self, calendars, startDatetime, endDatetime, localTZ, thresh
# Call the Google Calendar API and return a list of events that fall within the specified dates
eventList = []

minTimeStr = startDatetime.isoformat()
maxTimeStr = endDatetime.isoformat()
minTimeStr, maxTimeStr = startDatetime.isoformat(), endDatetime.isoformat()
if False:
return eventList

Expand Down