Commit 3bccf548 by Vasyl Nakvasiuk

remove trash code

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