From 9d161129d9a6e477f5bbffc15344e7feb1b9344f Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Wed, 25 Jul 2018 21:56:25 +0200 Subject: [PATCH] Fix for #554 --- cps/web.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cps/web.py b/cps/web.py index 2ca3cb6c..39d56ae3 100755 --- a/cps/web.py +++ b/cps/web.py @@ -1508,14 +1508,14 @@ def delete_book(book_id): @login_required @admin_required def authenticate_google_drive(): - authUrl = Gauth.Instance().auth.GetAuthUrl() + authUrl = gdriveutils.Gauth.Instance().auth.GetAuthUrl() return redirect(authUrl) @app.route("/gdrive/callback") def google_drive_callback(): auth_code = request.args.get('code') - credentials = Gauth.Instance().auth.flow.step2_exchange(auth_code) + credentials = gdriveutils.Gauth.Instance().auth.flow.step2_exchange(auth_code) with open(os.path.join(config.get_main_dir,'gdrive_credentials'), 'w') as f: f.write(credentials.to_json()) return redirect(url_for('configuration'))