Commit 3bccf548 by Vasyl Nakvasiuk

remove trash code

parent 67635842
...@@ -81,7 +81,6 @@ class WordCloudModule(WordCloudFields, XModule): ...@@ -81,7 +81,6 @@ class WordCloudModule(WordCloudFields, XModule):
def top_dict(self, dict_obj, amount): def top_dict(self, dict_obj, amount):
"""Return new dict: top of dict using dict value.""" """Return new dict: top of dict using dict value."""
# TODO: optimize this - don't use sorting.
return dict( return dict(
sorted( sorted(
dict_obj.items(), dict_obj.items(),
...@@ -102,7 +101,6 @@ class WordCloudModule(WordCloudFields, XModule): ...@@ -102,7 +101,6 @@ class WordCloudModule(WordCloudFields, XModule):
""" """
if dispatch == 'submit': if dispatch == 'submit':
if self.submitted: if self.submitted:
# TODO: error standart.
return json.dumps({ return json.dumps({
'status': 'fail', 'status': 'fail',
'error': 'You have already posted your data.' 'error': 'You have already posted your data.'
......
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