Commit 9495059f by Vasyl Nakvasiuk

add "get_state" dispatch for WordCloud

parent b4be6a9b
...@@ -133,6 +133,8 @@ class WordCloudModule(WordCloudFields, XModule): ...@@ -133,6 +133,8 @@ class WordCloudModule(WordCloudFields, XModule):
self.all_words = temp_all_words self.all_words = temp_all_words
return self.get_state() return self.get_state()
if dispatch == 'get_state':
return self.get_state()
else: else:
return json.dumps({ return json.dumps({
'status': 'fail', 'status': 'fail',
......
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