From 32ba6da3f3ae13a1fe915ce9fd0788e1009f64e9 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 16 Feb 2016 22:00:13 +0100 Subject: Check if the id of the category is '0'. --- src/web/views/feed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/views/feed.py b/src/web/views/feed.py index 58628d6a..4a07ac52 100644 --- a/src/web/views/feed.py +++ b/src/web/views/feed.py @@ -194,7 +194,7 @@ def process_form(feed_id=None): feed_attr = {'title': form.title.data, 'enabled': form.enabled.data, 'link': form.link.data, 'site_link': form.site_link.data, 'filters': [], 'category_id': form.category_id.data} - if not feed_attr['category_id']: + if not feed_attr['category_id'] or feed_attr['category_id'] == '0': del feed_attr['category_id'] for filter_attr in ('type', 'pattern', 'action on', 'action'): -- cgit