From 537fb1721fb2236ce129f99b377f0a7c6814c8ea Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 20 Sep 2016 21:44:36 +0200 Subject: Display only the 100 most popular feeds. --- src/web/views/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']) -- cgit