diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-02-16 22:00:13 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-02-16 22:00:13 +0100 |
commit | 32ba6da3f3ae13a1fe915ce9fd0788e1009f64e9 (patch) | |
tree | c5fcc49dad88b2e1cd0b2e1006e8b6341828ab2a /src/web/views/feed.py | |
parent | Removed the possibility to see the list of feeds of a user. A new column in t... (diff) | |
download | newspipe-32ba6da3f3ae13a1fe915ce9fd0788e1009f64e9.tar.gz newspipe-32ba6da3f3ae13a1fe915ce9fd0788e1009f64e9.tar.bz2 newspipe-32ba6da3f3ae13a1fe915ce9fd0788e1009f64e9.zip |
Check if the id of the category is '0'.
Diffstat (limited to 'src/web/views/feed.py')
-rw-r--r-- | src/web/views/feed.py | 2 |
1 files changed, 1 insertions, 1 deletions
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'): |