aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-09-20 23:22:20 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-09-20 23:22:20 +0200
commit3fd22c29e616374674b05b496070e1992119a55f (patch)
tree6c8481f3d079b4a72d21c0a7aa85e150bfd7047a
parentthe number of days can be give in the url (diff)
downloadnewspipe-3fd22c29e616374674b05b496070e1992119a55f.tar.gz
newspipe-3fd22c29e616374674b05b496070e1992119a55f.tar.bz2
newspipe-3fd22c29e616374674b05b496070e1992119a55f.zip
set the limit of days to 1000 (for the tests).
-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 abebff15..57f9e9c9 100644
--- a/src/web/views/views.py
+++ b/src/web/views/views.py
@@ -50,7 +50,7 @@ def popular():
"""
Return the most popular feeds for the last nb_days days.
"""
- nb_days = int(request.args.get('nb_days', 365))
+ nb_days = int(request.args.get('nb_days', 1000))
last_added_feed = FeedController().read().\
order_by(desc('created_date')).limit(1)
if last_added_feed:
bgstack15