Private
Public Access
1
0

added links to strava, st, c2 under button

This commit is contained in:
Sander Roosendaal
2017-02-19 10:45:48 +01:00
parent 2181f69d8b
commit e0b719da4e
4 changed files with 96 additions and 77 deletions

View File

@@ -449,6 +449,7 @@ def get_username(access_token):
try:
res = me_json['data']['username']
id = me_json['data']['id']
except KeyError:
res = None
@@ -482,7 +483,7 @@ def process_callback(request):
access_token = get_token(code)
username = get_username(access_token)
username,id = get_username(access_token)
return HttpResponse("got a user name: %s" % username)