From d6256b67a5ab6ee65b68061561b204344b3ce84d Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Fri, 2 Nov 2018 15:34:08 +0100 Subject: Ignore feeds with too much errors when calculating most popular feeds. --- src/web/views/views.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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) -- cgit