Skip to content

Commit

Permalink
Use username instead
Browse files Browse the repository at this point in the history
  • Loading branch information
dri94 committed Jul 4, 2023
1 parent f06e616 commit 1650c0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions swiftplugin/swiftplugin/swiftplugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,9 @@ def student_id(self):
print(xb_user)
print(xb_user.emails)
print(xb_user.opt_attrs)
student_id = xb_user.opt_attrs.get('edx-platform.user_id')
student_id = xb_user.opt_attrs.get('edx-platform.username')
if student_id is None:
student_id = xb_user.opt_attrs.get('xblock-workbench.user_id')
student_id = xb_user.opt_attrs.get('xblock-workbench.username')
return student_id

@staticmethod
Expand Down

0 comments on commit 1650c0c

Please sign in to comment.