Commit f01e618a by Alexander Kryklia

try to fix order for answers

parent 419abfdc
...@@ -12,6 +12,7 @@ import cgi ...@@ -12,6 +12,7 @@ import cgi
import json import json
import logging import logging
from copy import deepcopy from copy import deepcopy
from collections import OrderedDict
from lxml import etree from lxml import etree
from pkg_resources import resource_string from pkg_resources import resource_string
...@@ -94,7 +95,7 @@ class PollModule(XModule): ...@@ -94,7 +95,7 @@ class PollModule(XModule):
Returns: Returns:
string - Serialize json. string - Serialize json.
""" """
answers_to_json = {} answers_to_json = OrderedDict()
# FIXME: fix this, when xblock support mutable types. # FIXME: fix this, when xblock support mutable types.
# Now we use this hack. # Now we use this hack.
......
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