aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-09-20 21:44:36 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-09-20 21:44:36 +0200
commit537fb1721fb2236ce129f99b377f0a7c6814c8ea (patch)
treedbd9a59a3c3819a370325540eca7c68827e4e085
parentAdded link to the 'popular' page. (diff)
downloadnewspipe-537fb1721fb2236ce129f99b377f0a7c6814c8ea.tar.gz
newspipe-537fb1721fb2236ce129f99b377f0a7c6814c8ea.tar.bz2
newspipe-537fb1721fb2236ce129f99b377f0a7c6814c8ea.zip
Display only the 100 most popular feeds.
-rw-r--r--src/web/views/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web/views/views.py b/src/web/views/views.py
index ceb1ab10..5da13f17 100644
--- a/src/web/views/views.py
+++ b/src/web/views/views.py
@@ -48,7 +48,7 @@ def popular():
feeds = FeedController().count_by_link()
sorted_feeds = sorted(feeds.items(), key=operator.itemgetter(1),
reverse=True)
- return render_template('popular.html', popular=sorted_feeds)
+ return render_template('popular.html', popular=sorted_feeds[:100])
@current_app.route('/about', methods=['GET'])
bgstack15