Commit 35faddca by Bridger Maxwell

Fixed typo in certificate request.

parent e4bedf55
......@@ -106,7 +106,7 @@ def generate_certificate(user, grade):
log.critical("A graded certificate has been pre-generated with the grade of " + str(generated_certificate.grade) + " but requested with grade " + str(grade) + \
"! The download URL is " + str(generated_certificate.graded_download_url))
user_name = UserProfile.objects.get(user = s).name
user_name = UserProfile.objects.get(user = user).name
if generated_certificate.download_url and (generated_certificate.name != user_name):
log.critical("A Certificate has been pre-generated with the name of " + str(generated_certificate.name) + " but current name is " + str(user_name) + \
"! The download URL is " + str(generated_certificate.download_url))
......
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