Bug fix in profile page

This commit is contained in:
Piotr Mitros
2012-01-23 12:20:25 -05:00
parent ef1c465d5e
commit 11f3012214

View File

@@ -62,7 +62,7 @@ def profile(request):
correct=response.grade
else:
correct=0
total=capa_module.LoncapaModule(etree.tostring(p), "id").max_score() # TODO: Add state. Not useful now, but maybe someday problems will have randomized max scores?
total=courseware.modules.capa_module.LoncapaModule(etree.tostring(p), "id").max_score() # TODO: Add state. Not useful now, but maybe someday problems will have randomized max scores?
scores.append((int(correct),total))
score={'course':course,
'section':s.get("name"),