diff options
author | Cédric Bonhomme <kimble.mandel+bitbucket@gmail.com> | 2015-04-23 10:04:23 +0200 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel+bitbucket@gmail.com> | 2015-04-23 10:04:23 +0200 |
commit | fad13d6f3a5ddb133b5dbb6df77ca200be9ea241 (patch) | |
tree | 52db75138eee48708aef3633d862938d01de0218 /pyaggr3g470r/controllers/article.py | |
parent | Fixed strange behaviour of the search when only searching on the content. (diff) | |
parent | enforcing better user of user_id in controllers (diff) | |
download | newspipe-fad13d6f3a5ddb133b5dbb6df77ca200be9ea241.tar.gz newspipe-fad13d6f3a5ddb133b5dbb6df77ca200be9ea241.tar.bz2 newspipe-fad13d6f3a5ddb133b5dbb6df77ca200be9ea241.zip |
Merged in jaesivsm/pyaggr3g470r (pull request #12)
enforcing better user of user_id in controllers
Diffstat (limited to 'pyaggr3g470r/controllers/article.py')
-rw-r--r-- | pyaggr3g470r/controllers/article.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyaggr3g470r/controllers/article.py b/pyaggr3g470r/controllers/article.py index bcd73e99..d22911bd 100644 --- a/pyaggr3g470r/controllers/article.py +++ b/pyaggr3g470r/controllers/article.py @@ -23,6 +23,6 @@ class ArticleController(AbstractController): def get_unread(self): return dict(db.session.query(Article.feed_id, func.count(Article.id)) - .filter(Article.readed == False, - Article.user_id == self.user_id) + .filter(*self._to_filters(readed=False, + user_id=self.user_id)) .group_by(Article.feed_id).all()) |