From 19f52387d93b8d8a75298cc387379fb753972c69 Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Tue, 9 Feb 2010 22:11:56 +0100 Subject: Little improvement (Possibility to mark all articles as read only by feeds.) --- pyAggr3g470r.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py index 4d49ce7c..58f9f72e 100644 --- a/pyAggr3g470r.py +++ b/pyAggr3g470r.py @@ -96,7 +96,7 @@ class Root: html += "
\n" html += """All articles""" % (rss_feed_id,) - html += """ Mark all as read""" % (rss_feed_id,) + html += """ Mark all as read""" % (rss_feed_id,) if self.dic_info[rss_feed_id][1] != 0: html += """ Unread article(s) (%s)""" % (rss_feed_id, \ @@ -262,7 +262,7 @@ class Root: if param == "All": c.execute("UPDATE rss_feed SET article_readed=1") # Mark all articles from a feed as read. - elif param == "Feed": + elif param == "Feed" or param == "Feed_FromMainPage": c.execute("UPDATE rss_feed SET article_readed=1 WHERE feed_site_link='" + self.dic[identifiant][0][6] + "'") # Mark an article as read. elif param == "Article": @@ -274,7 +274,7 @@ class Root: self.dic, self.dic_info = self.load_feed() - if param == "All": + if param == "All" or param == "Feed_FromMainPage": return self.index() elif param == "Feed": return self.all_articles(identifiant) -- cgit