Commit 277d71fb by Piotr Mitros

Snapshot for gjs

parent 5dab18fe
......@@ -235,7 +235,11 @@ class LoncapaModule(XModule):
answers['_'.join(key.split('_')[1:])]=get[key]
correct_map = self.lcp.grade_answers(answers)
success = False # TODO
success = True
for i in correct_map:
if correct_map[i]!='correct':
success = False
js=json.dumps({'correct_map' : correct_map,
'success' : success})
......
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