diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2018-11-02 15:34:08 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2018-11-02 15:34:08 +0100 |
commit | d6256b67a5ab6ee65b68061561b204344b3ce84d (patch) | |
tree | aeecfb4f5d499ae5b005f2c3540cd54cb6c2bbbb /src/web | |
parent | Added an option to not include dead feeds in the OPML export. (diff) | |
download | newspipe-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')
-rw-r--r-- | src/web/views/views.py | 1 |
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) |