aboutsummaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2010-09-17 11:26:33 +0200
committercedricbonhomme <devnull@localhost>2010-09-17 11:26:33 +0200
commit89d3ba74fa60714b480b94c33781f036e4449caf (patch)
treed4376398062be54b19fb6729ebecaec4c25149fd /utils.py
parentLittle bigger QRCode for longer URLs. (diff)
downloadnewspipe-89d3ba74fa60714b480b94c33781f036e4449caf.tar.gz
newspipe-89d3ba74fa60714b480b94c33781f036e4449caf.tar.bz2
newspipe-89d3ba74fa60714b480b94c33781f036e4449caf.zip
Minor bugfix in topwords() function.
Diffstat (limited to 'utils.py')
-rwxr-xr-xutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.py b/utils.py
index 7f6fd2b0..13bf3845 100755
--- a/utils.py
+++ b/utils.py
@@ -121,7 +121,7 @@ def top_words(dic_articles, n=10, size=5):
for article in dic_articles[rss_feed_id]:
words_gen.extend([word.strip(punctuation).lower() \
for word in clear_string(article[4].encode('utf-8')).split() \
- if len(word) > size])
+ if len(word) >= size])
words = Counter()
for word in words_gen:
words[word] += 1
bgstack15