aboutsummaryrefslogtreecommitdiff
path: root/src/web/views
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-02-16 22:00:13 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-02-16 22:00:13 +0100
commit32ba6da3f3ae13a1fe915ce9fd0788e1009f64e9 (patch)
treec5fcc49dad88b2e1cd0b2e1006e8b6341828ab2a /src/web/views
parentRemoved the possibility to see the list of feeds of a user. A new column in t... (diff)
downloadnewspipe-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')
-rw-r--r--src/web/views/feed.py2
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'):
bgstack15