aboutsummaryrefslogtreecommitdiff
path: root/src/web/views/user.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-07 11:07:26 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-07 11:07:26 +0200
commita3a4a593e504c1d50e1cf8cfe960cf80bead3376 (patch)
tree661fdab55d3dcf3111eeb066cff482a67edec6ac /src/web/views/user.py
parentSome other new update for the public profile page. (diff)
downloadnewspipe-a3a4a593e504c1d50e1cf8cfe960cf80bead3376.tar.gz
newspipe-a3a4a593e504c1d50e1cf8cfe960cf80bead3376.tar.bz2
newspipe-a3a4a593e504c1d50e1cf8cfe960cf80bead3376.zip
Generates the tag cloud of the user based on the last 10 weeks.
Diffstat (limited to 'src/web/views/user.py')
-rw-r--r--src/web/views/user.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web/views/user.py b/src/web/views/user.py
index 3e203b3e..9dca512c 100644
--- a/src/web/views/user.py
+++ b/src/web/views/user.py
@@ -31,7 +31,7 @@ def profile_public(nickname=None):
word_size = 6
filters = {}
- filters['retrieved_date__gt'] = datetime.now() - timedelta(weeks=24)
+ filters['retrieved_date__gt'] = datetime.now() - timedelta(weeks=10)
articles = ArticleController(user.id).read(**filters).all()
top_words = misc_utils.top_words(articles, n=50, size=int(word_size))
tag_cloud = misc_utils.tag_cloud(top_words)
bgstack15