aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2012-03-10 09:01:29 +0100
committercedricbonhomme <devnull@localhost>2012-03-10 09:01:29 +0100
commit5499562bc71d9e70d08a3f1e3d2efc0ed2f3d798 (patch)
treef795ffaaa4450f416900c7057a1e09cb33fae14d
parentUpdated comments. (diff)
downloadnewspipe-5499562bc71d9e70d08a3f1e3d2efc0ed2f3d798.tar.gz
newspipe-5499562bc71d9e70d08a3f1e3d2efc0ed2f3d798.tar.bz2
newspipe-5499562bc71d9e70d08a3f1e3d2efc0ed2f3d798.zip
top_words is not an attribute of Root().
-rwxr-xr-xpyAggr3g470r.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py
index 7c605821..28a4090e 100755
--- a/pyAggr3g470r.py
+++ b/pyAggr3g470r.py
@@ -321,7 +321,7 @@ class Root:
# Some statistics (most frequent word)
if articles:
- self.top_words = utils.top_words(articles, n=50, size=int(word_size))
+ top_words = utils.top_words(articles, n=50, size=int(word_size))
html += "<h1>Statistics</h1>\n<br />\n"
# Tags cloud
html += 'Minimum size of a word:'
@@ -330,7 +330,7 @@ class Root:
html += '<input type="submit" value="OK"></form>\n'
html += '<br /><h3>Tag cloud</h3>\n'
html += '<div style="width: 35%; overflow:hidden; text-align: justify">' + \
- utils.tag_cloud(self.top_words) + '</div>'
+ utils.tag_cloud(top_words) + '</div>'
html += "<hr />\n"
html += htmlfooter
bgstack15