Commit e66e4040 by Alexander Kryklia

replaced ordereddict with dict

parent 87c58be7
......@@ -27,7 +27,6 @@ values are (x,y) coordinates of centers of dragged images.
"""
import json
from collections import OrderedDict
class PositionsCompare(list):
......@@ -105,10 +104,10 @@ class DragAndDrop(object):
""" Grader class for drag and drop inputtype.
"""
def __init__(self):
self.correct_groups = OrderedDict() # correct groups from xml
self.correct_positions = OrderedDict() # correct positions for comparing
self.user_groups = OrderedDict() # will be populated from user answer
self.user_positions = OrderedDict() # will be populated from user answer
self.correct_groups = dict() # correct groups from xml
self.correct_positions = dict() # correct positions for comparing
self.user_groups = dict() # will be populated from user answer
self.user_positions = dict() # will be populated from user answer
def grade(self):
''' Grader 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