Skip to content
Snippets Groups Projects
Unverified Commit 7817c47d authored by Christie Rice's avatar Christie Rice Committed by GitHub
Browse files

MICROBA-885 Check whitelisted, even if a grade exists (#26011)

parent 53ccf9bd
No related branches found
Tags release-2020-12-10-12.51
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment