Commit f3d4381f by cahrens

Minor cleanup.

parent 2c32200c
...@@ -207,7 +207,7 @@ class WordCloudModule(WordCloudFields, XModule): ...@@ -207,7 +207,7 @@ class WordCloudModule(WordCloudFields, XModule):
# Update top_words. # Update top_words.
self.top_words = self.top_dict( self.top_words = self.top_dict(
temp_all_words, temp_all_words,
int(self.num_top_words) self.num_top_words
) )
# Save all_words in database. # Save all_words in database.
...@@ -228,7 +228,7 @@ class WordCloudModule(WordCloudFields, XModule): ...@@ -228,7 +228,7 @@ class WordCloudModule(WordCloudFields, XModule):
'element_id': self.location.html_id(), 'element_id': self.location.html_id(),
'element_class': self.location.category, 'element_class': self.location.category,
'ajax_url': self.system.ajax_url, 'ajax_url': self.system.ajax_url,
'num_inputs': int(self.num_inputs), 'num_inputs': self.num_inputs,
'submitted': self.submitted 'submitted': self.submitted
} }
self.content = self.system.render_template('word_cloud.html', context) self.content = self.system.render_template('word_cloud.html', context)
......
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