diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-09-20 21:44:36 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-09-20 21:44:36 +0200 |
commit | 537fb1721fb2236ce129f99b377f0a7c6814c8ea (patch) | |
tree | dbd9a59a3c3819a370325540eca7c68827e4e085 /src/web/views/views.py | |
parent | Added link to the 'popular' page. (diff) | |
download | newspipe-537fb1721fb2236ce129f99b377f0a7c6814c8ea.tar.gz newspipe-537fb1721fb2236ce129f99b377f0a7c6814c8ea.tar.bz2 newspipe-537fb1721fb2236ce129f99b377f0a7c6814c8ea.zip |
Display only the 100 most popular feeds.
Diffstat (limited to 'src/web/views/views.py')
-rw-r--r-- | src/web/views/views.py | 2 |
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']) |