adds backend script which can be run as a cronjob every n minutes to generate new json files for google calendars
- database updated to save google credentials - database updated to save json calendar information - json still saved as a json file under userinfo/<user.id>/calendarevents.json
This commit is contained in:
@ -86,7 +86,7 @@ def verifyResponse():
|
||||
flask.session['credentials'] = credentials_to_dict(credentials)
|
||||
|
||||
session = flow.authorized_session()
|
||||
return session
|
||||
return session, credentials_to_dict(credentials)
|
||||
|
||||
|
||||
def get_google_provider_cfg():
|
||||
@ -103,7 +103,7 @@ def calendarsFromDb():
|
||||
pyCalendars = []
|
||||
for calendar in calendars:
|
||||
name = calendar.name
|
||||
calId = calendar.calendar_id
|
||||
# calId = calendar.calendar_id
|
||||
toggle = calendar.toggle
|
||||
color = calendar.color
|
||||
|
||||
|
Reference in New Issue
Block a user