Skip to content

Commit

Permalink
fix: Jsonify output
Browse files Browse the repository at this point in the history
  • Loading branch information
worldbeater committed Mar 4, 2024
1 parent 4521ef9 commit 40cfd5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/views/student.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def login_with_lks_callback():
scope='basic')
response = oauth.fetch_token(token_ep, authorization_response=request.url)
access_token = response['access_token']
info = requests.get(userinfo_ep, headers={'Authorization': f'Bearer {access_token}'})
info = requests.get(userinfo_ep, headers={'Authorization': f'Bearer {access_token}'}).json()
email = info['login']
student = db.students.get_by_external_email(email, 'lks')
if not student:
Expand Down

0 comments on commit 40cfd5f

Please sign in to comment.