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:
2020-04-24 17:54:56 +00:00
parent a071193959
commit c89ecd7134
8 changed files with 84 additions and 7 deletions

View File

@ -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