diff options
author | François Schmidts <francois.schmidts@gmail.com> | 2015-01-21 14:07:00 +0100 |
---|---|---|
committer | François Schmidts <francois.schmidts@gmail.com> | 2015-03-03 22:22:46 +0100 |
commit | 4f0ad9e442e64f69d420dea4d737805eefaaf981 (patch) | |
tree | 8625aca6c0313243aab5143df916df400edc4385 /pyaggr3g470r/controllers/article.py | |
parent | first implementation of fetchable feeds (diff) | |
download | newspipe-4f0ad9e442e64f69d420dea4d737805eefaaf981.tar.gz newspipe-4f0ad9e442e64f69d420dea4d737805eefaaf981.tar.bz2 newspipe-4f0ad9e442e64f69d420dea4d737805eefaaf981.zip |
continuing refacto
Diffstat (limited to 'pyaggr3g470r/controllers/article.py')
-rw-r--r-- | pyaggr3g470r/controllers/article.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyaggr3g470r/controllers/article.py b/pyaggr3g470r/controllers/article.py index cfaf386d..0de223ee 100644 --- a/pyaggr3g470r/controllers/article.py +++ b/pyaggr3g470r/controllers/article.py @@ -6,10 +6,10 @@ from pyaggr3g470r.models import Article class ArticleController(AbstractController): _db_cls = Article - def read(self, obj_id): - article = super(ArticleController, self).read(obj_id) + def get(self, **filters): + article = super(ArticleController, self).read(**filters) if not article.readed: - self.update(obj_id, readed=True) + self.update(article.id, readed=True) return article def delete(self, obj_id): |