Commit 6ba85765 by John Jarvis

pep8

parent ca24d2ab
...@@ -76,9 +76,10 @@ class Command(BaseCommand): ...@@ -76,9 +76,10 @@ class Command(BaseCommand):
start = datetime.datetime.now() start = datetime.datetime.now()
rows = [] rows = []
header = None header = None
certs = GeneratedCertificate.objects.filter(course_id=course_id)
print "Fetching certificate data" print "Fetching certificate data"
cert_grades = { cert.user.username: cert.grade for cert in list(GeneratedCertificate.objects.filter(course_id=course_id).prefetch_related('user')) } cert_grades = {cert.user.username: cert.grade
for cert in list(GeneratedCertificate.objects.filter(
course_id=course_id).prefetch_related('user'))}
print "Grading students" print "Grading students"
for count, student in enumerate(enrolled_students): for count, student in enumerate(enrolled_students):
count += 1 count += 1
......
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