From 7817c47df147a622291b128b4c1e233111759659 Mon Sep 17 00:00:00 2001 From: Christie Rice <8483753+crice100@users.noreply.github.com> Date: Mon, 11 Jan 2021 10:19:16 -0500 Subject: [PATCH] MICROBA-885 Check whitelisted, even if a grade exists (#26011) --- lms/djangoapps/certificates/queue.py | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/lms/djangoapps/certificates/queue.py b/lms/djangoapps/certificates/queue.py index 2f9f617574..9be5f61f6d 100644 --- a/lms/djangoapps/certificates/queue.py +++ b/lms/djangoapps/certificates/queue.py @@ -343,6 +343,7 @@ class XQueueCertInterface(object): # Strip HTML from grade range label grade_contents = forced_grade or course_grade.letter_grade + passing = False try: grade_contents = lxml.html.fromstring(grade_contents).text_content() passing = True @@ -361,16 +362,14 @@ class XQueueCertInterface(object): six.text_type(exc) ) - # Log if the student is whitelisted - if is_whitelisted: - LOGGER.info( - u"Student %s is whitelisted in '%s'", - student.id, - six.text_type(course_id) - ) - passing = True - else: - passing = False + # Check if the student is whitelisted + if is_whitelisted: + LOGGER.info( + u"Student %s is whitelisted in '%s'", + student.id, + six.text_type(course_id) + ) + passing = True # If this user's enrollment is not eligible to receive a # certificate, mark it as such for reporting and