Revert "Ensure old audit certs don't get marked ineligible."
This reverts commit 54c349b437.
This commit is contained in:
@@ -279,7 +279,7 @@ class XQueueCertInterface(object):
|
||||
if forced_grade:
|
||||
grade['grade'] = forced_grade
|
||||
|
||||
cert, created = GeneratedCertificate.eligible_certificates.get_or_create(user=student, course_id=course_id)
|
||||
cert, __ = GeneratedCertificate.eligible_certificates.get_or_create(user=student, course_id=course_id)
|
||||
|
||||
cert.mode = cert_mode
|
||||
cert.user = student
|
||||
@@ -290,9 +290,8 @@ class XQueueCertInterface(object):
|
||||
|
||||
# If this user's enrollment is not eligible to receive a
|
||||
# certificate, mark it as such for reporting and
|
||||
# analytics. Only do this if the certificate is new -- we
|
||||
# don't want to mark existing audit certs as ineligible.
|
||||
if created and not is_eligible_for_certificate:
|
||||
# analytics.
|
||||
if not is_eligible_for_certificate:
|
||||
cert.eligible_for_certificate = False
|
||||
cert.status = CertificateStatuses.auditing
|
||||
cert.save()
|
||||
|
||||
Reference in New Issue
Block a user