Skip to content

Commit

Permalink
fix: correct call in helpers+services
Browse files Browse the repository at this point in the history
  • Loading branch information
ilee2u committed Sep 25, 2024
1 parent 151f159 commit 087904d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions common/djangoapps/student/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,7 @@ def check_verify_status_by_course(user, course_enrollments):

# Check whether the user was approved or is awaiting approval
if relevant_verification is not None:
idv_type = relevant_verification.__name__
should_display = relevant_verification.should_display_status_to_user(idv_type=idv_type)
should_display = relevant_verification.should_display_status_to_user()

if relevant_verification.status == "approved":
if verification_expiring_soon:
Expand Down
3 changes: 1 addition & 2 deletions lms/djangoapps/verify_student/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,7 @@ def user_status(cls, user):
if not attempt:
return user_status

idv_type = attempt.__name__
user_status['should_display'] = attempt.should_display_status_to_user(idv_type=idv_type)
user_status['should_display'] = attempt.should_display_status_to_user()

if attempt.expiration_datetime < now() and attempt.status == 'approved':
if user_status['should_display']:
Expand Down

0 comments on commit 087904d

Please sign in to comment.