From 2c9457bfa0978fb6079cf9c778d7870aeab52645 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Wed, 31 Oct 2018 22:43:42 +0100 Subject: Added an option to not include dead feeds in the OPML export. --- src/web/templates/management.html | 6 +++++- src/web/views/feed.py | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'src/web') diff --git a/src/web/templates/management.html b/src/web/templates/management.html index 9c6a2e1c..4d7c2da3 100644 --- a/src/web/templates/management.html +++ b/src/web/templates/management.html @@ -46,7 +46,11 @@
- + +
+
+ +
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) -- cgit