Skip to content

Commit

Permalink
Update settings.yaml file
Browse files Browse the repository at this point in the history
  • Loading branch information
Ozzie Isaacs authored Jun 7, 2018
1 parent 9285423 commit a06748e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cps/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -2542,10 +2542,10 @@ def configuration_helper(origin):
with open('settings.yaml', 'w') as f:
yaml = "client_config_backend: settings\nclient_config:\n" \
" client_id: %(client_id)s\n client_secret: %(client_secret)s\n" \
" redirect_uri: %(redirect_uri)s\nsave_credentials: True\n" \
"save_credentials_backend: file\nsave_credentials_file: gdrive_credentials\n" \
" redirect_uri: %(redirect_uri)s\n\nsave_credentials: True\n" \
"save_credentials_backend: file\nsave_credentials_file: gdrive_credentials\n\n" \
"get_refresh_token: True\n\noauth_scope:\n" \
"- https://www.googleapis.com/auth/drive\n"
" - https://www.googleapis.com/auth/drive\n"
f.write(yaml % {'client_id': filedata['web']['client_id'],
'client_secret': filedata['web']['client_secret'],
'redirect_uri': filedata['web']['redirect_uris'][0]})
Expand Down

0 comments on commit a06748e

Please sign in to comment.