Skip to content
Snippets Groups Projects
Unverified Commit e76536b6 authored by Awais Jibran's avatar Awais Jibran Committed by GitHub
Browse files

Merge pull request #19943 from edx/aj/fix-cert-invalid-grade-source

Fix Incorrect data for cert table
parents d55be49e 81f15267
No related branches found
Tags release-2021-02-03-12.16
No related merge requests found
......@@ -84,10 +84,11 @@ def _listen_for_failing_grade(sender, user, course_id, grade, **kwargs): # pyli
cert = GeneratedCertificate.certificate_for_student(user, course_id)
if cert is not None:
if CertificateStatuses.is_passing_status(cert.status):
cert.mark_notpassing(grade)
log.info(u'Certificate marked not passing for {user} : {course} via failing grade'.format(
cert.mark_notpassing(grade.percent)
log.info(u'Certificate marked not passing for {user} : {course} via failing grade: {grade}'.format(
user=user.id,
course=course_id
course=course_id,
grade=grade
))
......
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