diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2018-10-31 22:43:42 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2018-10-31 22:43:42 +0100 |
commit | 2c9457bfa0978fb6079cf9c778d7870aeab52645 (patch) | |
tree | ee4fe3e621949883a478110410aac8514f7b2e08 /src/web/views | |
parent | Merge branch 'master' of gitlab.com:newspipe/newspipe (diff) | |
download | newspipe-2c9457bfa0978fb6079cf9c778d7870aeab52645.tar.gz newspipe-2c9457bfa0978fb6079cf9c778d7870aeab52645.tar.bz2 newspipe-2c9457bfa0978fb6079cf9c778d7870aeab52645.zip |
Added an option to not include dead feeds in the OPML export.
Diffstat (limited to 'src/web/views')
-rw-r--r-- | src/web/views/feed.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/web/views/feed.py b/src/web/views/feed.py index 39134213..b98a005a 100644 --- a/src/web/views/feed.py +++ b/src/web/views/feed.py @@ -281,12 +281,16 @@ def export(): """ include_disabled = request.args.get('includedisabled', '') == 'on' include_private = request.args.get('includeprivate', '') == 'on' + include_exceeded_error_count = request.args. \ + get('includeexceedederrorcount', '') == 'on' filter = {} if not include_disabled: filter['enabled'] = True if not include_private: filter['private'] = False + if not include_exceeded_error_count: + filter['error_count__lt'] = conf.DEFAULT_MAX_ERROR user = UserController(current_user.id).get(id=current_user.id) feeds = FeedController(current_user.id).read(**filter) |