Commit b3876e1a by AsadAzam Committed by GitHub

Merge pull request #14743 from edx/asadazam/tnl-6637-grade-report-log

added logs while calculating eligble_for_certificate
parents bfc665e5 4a4f16e5
......@@ -820,6 +820,16 @@ def upload_grades_csv(_xmodule_instance_args, _entry_id, course_id, _task_input,
course_grade.letter_grade,
student.id in whitelisted_user_ids
)
if certificate_info[0] == 'Y' and course_grade.letter_grade is None and student.id not in whitelisted_user_ids:
TASK_LOG.info(
u'Student is marked eligible_for_certificate despite failing the course '
u'(user=%s, course_id=%s, grade_percent=%s gradecutoffs=%s, allow_certificate=%s)',
student,
course_id,
course_grade.percent,
course_grade.course.grade_cutoffs,
student.profile.allow_certificate
)
grade_results = []
for assignment_type, assignment_info in graded_assignments.iteritems():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment