diff options
author | cedricbonhomme <devnull@localhost> | 2010-07-02 15:46:29 +0200 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2010-07-02 15:46:29 +0200 |
commit | 0aedc770df85430b526fddabb490732b5747fd4d (patch) | |
tree | fb198c64be40eba22411b3c336b388ae1dd67374 | |
parent | Added logo. (diff) | |
download | newspipe-0aedc770df85430b526fddabb490732b5747fd4d.tar.gz newspipe-0aedc770df85430b526fddabb490732b5747fd4d.tar.bz2 newspipe-0aedc770df85430b526fddabb490732b5747fd4d.zip |
SQLite improvements.
-rwxr-xr-x | pyAggr3g470r.py | 4 |
1 files changed, 2 insertions, 2 deletions
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": |