fixed url() call

multi-deployment
b3yond 2018-04-14 17:00:30 +02:00
parent 034513718f
commit 45d4cd2062
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ def login_twitter(user):
try:
consumer_key = config["twitter"]["consumer_key"]
consumer_secret = config["twitter"]["consumer_secret"]
callback_url = url("/login/twitter/callback")
callback_url = url("login/twitter/callback")
auth = tweepy.OAuthHandler(consumer_key, consumer_secret, callback_url)
try:
redirect_url = auth.get_authorization_url()