aboutsummaryrefslogtreecommitdiff
path: root/pyAggr3g470r.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyAggr3g470r.py')
-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