total=courseware.modules.capa_module.Module(etree.tostring(problem),"id").max_score()# TODO: Add state. Not useful now, but maybe someday problems will have randomized max scores?
''' User profile. Show username, location, etc, as well as grades .
...
...
@@ -64,14 +80,16 @@ def profile(request):
scores=[]
iflen(problems)>0:
forpinproblems:
id=p.get('id')
correct=0
ifidinresponse_by_id:
response=response_by_id[id]
ifresponse.grade!=None:
correct=response.grade
total=courseware.modules.capa_module.Module(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.Module(etree.tostring(p), "id").max_score() # TODO: Add state. Not useful now, but maybe someday problems will have randomized max scores?