Commit f71c43f7 by Vasyl Nakvasiuk

fix self.excess_draggables

parent 35551049
...@@ -352,8 +352,8 @@ class DragAndDrop(object): ...@@ -352,8 +352,8 @@ class DragAndDrop(object):
# correct_answer entries. If the draggable is mentioned in at least one # correct_answer entries. If the draggable is mentioned in at least one
# correct_answer entry, the value is False. # correct_answer entry, the value is False.
# default to consider every user answer excess until proven otherwise. # default to consider every user answer excess until proven otherwise.
self.excess_draggables = dict((users_draggable.keys()[0],True) self.excess_draggables = dict((users_draggable.keys()[0],True)
for users_draggable in user_answer['draggables']) for users_draggable in user_answer)
# Convert nested `user_answer` to flat format. # Convert nested `user_answer` to flat format.
user_answer = flat_user_answer(user_answer) user_answer = flat_user_answer(user_answer)
......
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