From 3e9d26b704e4435a644255ffac9fae106fe9c09c Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 22 Mar 2016 14:23:06 +0100 Subject: fix... --- src/web/controllers/feed.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/web/controllers/feed.py') diff --git a/src/web/controllers/feed.py b/src/web/controllers/feed.py index b78d6928..4bb683e0 100644 --- a/src/web/controllers/feed.py +++ b/src/web/controllers/feed.py @@ -84,9 +84,10 @@ class FeedController(AbstractController): def update(self, filters, attrs): from .article import ArticleController self._ensure_icon(attrs) - if not attrs['category_id'] or attrs['category_id'] == 0: + if 'category_id' in attrs and attrs['category_id'] == 0: del attrs['category_id'] - else: + elif 'category_id' in attrs: + print(attrs['category_id']) art_contr = ArticleController(self.user_id) for feed in self.read(**filters): art_contr.update({'feed_id': feed.id}, -- cgit