From 0aedc770df85430b526fddabb490732b5747fd4d Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Fri, 2 Jul 2010 15:46:29 +0200 Subject: SQLite improvements. --- pyAggr3g470r.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pyAggr3g470r.py') diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py index 4f88da4c..6537886a 100755 --- a/pyAggr3g470r.py +++ b/pyAggr3g470r.py @@ -616,10 +616,10 @@ class Root: c = conn.cursor() # Mark all articles as read. if param == "All": - c.execute("UPDATE articles SET article_readed=1") + c.execute("UPDATE articles SET article_readed=1 WHERE article_readed='0'") # Mark all articles from a feed as read. elif param == "Feed" or param == "Feed_FromMainPage": - c.execute("UPDATE articles SET article_readed=1 WHERE feed_link='" + \ + c.execute("UPDATE articles SET article_readed=1 WHERE article_readed='0' AND feed_link='" + \ self.feeds[identifiant][4].encode('utf-8') + "'") # Mark an article as read. elif param == "Article": -- cgit