From 20cfe159e99dcb6c36a34daef6f67c4b0d1b24ec Mon Sep 17 00:00:00 2001 From: b3yond Date: Sat, 14 Apr 2018 17:38:49 +0200 Subject: [PATCH] query is a dict, not a function --- frontend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend.py b/frontend.py index 585af01..fef3a3d 100755 --- a/frontend.py +++ b/frontend.py @@ -122,7 +122,7 @@ def twitter_callback(user): :return: """ # twitter passes the verifier/oauth token secret in a GET request. - verifier = request.query('oauth_verifier') + verifier = request.query['oauth_verifier'] consumer_key = config["twitter"]["consumer_key"] consumer_secret = config["twitter"]["consumer_secret"] auth = tweepy.OAuthHandler(consumer_key, consumer_secret)