aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-04-08 19:42:16 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-04-08 19:42:16 +0200
commitb2a98303a052deab8c6c8a30f4e30fefd7e7215b (patch)
tree141f8e30d481dc44bbc4051bc5e2f70b5392ac74 /pyaggr3g470r
parentMark all articles (or all articles from a feed) as read. (diff)
downloadnewspipe-b2a98303a052deab8c6c8a30f4e30fefd7e7215b.tar.gz
newspipe-b2a98303a052deab8c6c8a30f4e30fefd7e7215b.tar.bz2
newspipe-b2a98303a052deab8c6c8a30f4e30fefd7e7215b.zip
Fix.
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r--pyaggr3g470r/views.py2
1 files changed, 1 insertions, 1 deletions
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})
bgstack15