Fix syntax error added by last patch

This commit is contained in:
Jason McBrayer 2018-08-27 10:46:53 -04:00
parent b19b4fc641
commit a3db39988d
1 changed files with 4 additions and 6 deletions

View File

@ -182,8 +182,7 @@ def login(request):
try:
client = Client.objects.get(api_base_id=api_base_url)
except (Client.DoesNotExist, Client.MultipleObjectsReturned):
(client_id, client_secret) =
Mastodon.create_app('brutaldon',
(client_id, client_secret) = Mastodon.create_app('brutaldon',
api_base_url=api_base_url,
redirect_uris=redirect_uris,
scopes=['read', 'write', 'follow'])
@ -245,10 +244,9 @@ def old_login(request):
try:
client = Client.objects.get(api_base_id=api_base_url)
except (Client.DoesNotExist, Client.MultipleObjectsReturned):
(client_id, client_secret) =
Mastodon.create_app('brutaldon',
api_base_url=api_base_url,
scopes=['read', 'write', 'follow'])
(client_id, client_secret) = Mastodon.create_app('brutaldon',
api_base_url=api_base_url,
scopes=['read', 'write', 'follow'])
client = Client(
api_base_id = api_base_url,
client_id=client_id,