Skip to content

Commit

Permalink
test: code fix for PEP8 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anfbermudezme committed Sep 23, 2021
1 parent 3c92c03 commit 14212ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions common/djangoapps/third_party_auth/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -881,8 +881,7 @@ def user_details_force_sync(auth_entry, strategy, details, user=None, *args, **k
'https://iam.pearson.com:443/auth/saml-idp-uid',
]

if (details.get('first_name') and details.get('last_name') and
current_provider.entity_id in ies_entity_ids):
if (details.get('first_name') and details.get('last_name') and current_provider.entity_id in ies_entity_ids):
fullname_value = '{} {}'.format(details.get('first_name'), details.get('last_name'))
changed['fullname'] = fullname_value

Expand Down
2 changes: 1 addition & 1 deletion common/lib/xmodule/xmodule/capa_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1196,7 +1196,7 @@ def publish_grade(self, score=None, only_if_higher=None, **kwargs):
def student_item_key(self):
""" Get the student_item_dict required for the submissions API """
try:
user = self.runtime.get_real_user(self.runtime.anonymous_student_id)
user = self.runtime.get_real_user(self.runtime.anonymous_student_id)
location = self.location.replace(branch=None, version=None) # Standardize the key in case it isn't already
student_item = dict(
student_id=user.id,
Expand Down

0 comments on commit 14212ea

Please sign in to comment.