From 5e9795b51fcd8fb0482d028be7ba9633a1fdd83e Mon Sep 17 00:00:00 2001 From: Hailey Date: Fri, 4 Oct 2019 19:22:44 -0700 Subject: [PATCH] I think this will work Hopefully! --- google_auth.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/google_auth.py b/google_auth.py index b9e0f08..7ffb069 100644 --- a/google_auth.py +++ b/google_auth.py @@ -15,6 +15,12 @@ config = configparser.ConfigParser() config.read('config.ini') app_debug = config.get("app","debug") +app = Flask(__name__) +if app_debug == '1': + app.debug = True +else: + app.debug = False + ACCESS_TOKEN_URI = 'https://www.googleapis.com/oauth2/v4/token' AUTHORIZATION_URL = 'https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&prompt=consent'