From b2a98303a052deab8c6c8a30f4e30fefd7e7215b Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 8 Apr 2014 19:42:16 +0200 Subject: Fix. --- pyaggr3g470r/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyaggr3g470r') diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index 9be985c9..551abba2 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -257,7 +257,7 @@ def mark_as_read(feed_id=None): Mark all unreaded articles as read. """ if feed_id != None: - articles, feed = Article.query.filter(Article.readed == False).join(Feed).filter(Feed.id == feed_id).update({"readed": True}) + Article.query.filter(Article.readed == False).join(Feed).filter(Feed.id == feed_id).update({"readed": True}) flash('Articles marked as read.', 'info') else: Article.query.filter(Article.readed == False).update({"readed": True}) -- cgit