aboutsummaryrefslogtreecommitdiff
path: root/src/web/views
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2018-10-28 13:23:42 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2018-10-28 13:23:42 +0100
commitb46dccd8d8d85fb2a1d304ff239cdfcbcdc6bcb3 (patch)
treefcd3f507fdb4f31371c7a852b6028bb17d6b267a /src/web/views
parentRemoved useless tag cloud. (diff)
downloadnewspipe-b46dccd8d8d85fb2a1d304ff239cdfcbcdc6bcb3.tar.gz
newspipe-b46dccd8d8d85fb2a1d304ff239cdfcbcdc6bcb3.tar.bz2
newspipe-b46dccd8d8d85fb2a1d304ff239cdfcbcdc6bcb3.zip
Removed tag cloud from the public feed page.
Diffstat (limited to 'src/web/views')
-rw-r--r--src/web/views/feed.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/web/views/feed.py b/src/web/views/feed.py
index 297b5521..873e1eb6 100644
--- a/src/web/views/feed.py
+++ b/src/web/views/feed.py
@@ -43,8 +43,6 @@ def feed_view(feed_id=None, user_id=None):
articles = ArticleController(user_id) \
.read(feed_id=feed_id) \
.order_by(desc("date")).all()
- top_words = misc_utils.top_words(articles, n=50, size=int(word_size))
- tag_cloud = misc_utils.tag_cloud(top_words)
today = datetime.now()
try:
@@ -61,10 +59,9 @@ def feed_view(feed_id=None, user_id=None):
return render_template('feed.html',
head_titles=[utils.clear_string(feed.title)],
- feed=feed, articles=articles,
- tag_cloud=tag_cloud,
+ feed=feed, category=category,
first_post_date=first_article,
- end_post_date=last_article, category=category,
+ end_post_date=last_article,
average=average, delta=delta, elapsed=elapsed)
bgstack15