Commit 98e9d96c by Piotr Mitros

Fixed revert

parent e982418a
......@@ -17,7 +17,7 @@ from lxml import etree
from auth.models import UserProfile
from models import StudentModule
from module_render import *
from module_render import * # TODO: Clean up
import content_parser
log = logging.getLogger("mitx.courseware")
......@@ -61,7 +61,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"),
......
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