aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2010-07-02 15:46:29 +0200
committercedricbonhomme <devnull@localhost>2010-07-02 15:46:29 +0200
commit0aedc770df85430b526fddabb490732b5747fd4d (patch)
treefb198c64be40eba22411b3c336b388ae1dd67374
parentAdded logo. (diff)
downloadnewspipe-0aedc770df85430b526fddabb490732b5747fd4d.tar.gz
newspipe-0aedc770df85430b526fddabb490732b5747fd4d.tar.bz2
newspipe-0aedc770df85430b526fddabb490732b5747fd4d.zip
SQLite improvements.
-rwxr-xr-xpyAggr3g470r.py4
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":
bgstack15