aboutsummaryrefslogtreecommitdiff
path: root/src/web/views
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2018-11-02 15:34:08 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2018-11-02 15:34:08 +0100
commitd6256b67a5ab6ee65b68061561b204344b3ce84d (patch)
treeaeecfb4f5d499ae5b005f2c3540cd54cb6c2bbbb /src/web/views
parentAdded an option to not include dead feeds in the OPML export. (diff)
downloadnewspipe-d6256b67a5ab6ee65b68061561b204344b3ce84d.tar.gz
newspipe-d6256b67a5ab6ee65b68061561b204344b3ce84d.tar.bz2
newspipe-d6256b67a5ab6ee65b68061561b204344b3ce84d.zip
Ignore feeds with too much errors when calculating most popular feeds.
Diffstat (limited to 'src/web/views')
-rw-r--r--src/web/views/views.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/web/views/views.py b/src/web/views/views.py
index b0e8266b..ff442319 100644
--- a/src/web/views/views.py
+++ b/src/web/views/views.py
@@ -68,6 +68,7 @@ def popular():
filters = {}
filters['created_date__gt'] = not_added_before
filters['private'] = False
+ filters['error_count__lt'] = conf.DEFAULT_MAX_ERROR
feeds = FeedController().count_by_link(**filters)
sorted_feeds = sorted(list(feeds.items()), key=operator.itemgetter(1),
reverse=True)
bgstack15