Revert "Ensure old audit certs don't get marked ineligible."

This reverts commit 54c349b437.
This commit is contained in:
Peter Fogg
2016-01-20 08:56:48 -05:00
parent d0694aac75
commit b5400aa79b
2 changed files with 4 additions and 36 deletions

View File

@@ -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()