diff options
author | cedricbonhomme <devnull@localhost> | 2010-02-09 22:11:56 +0100 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2010-02-09 22:11:56 +0100 |
commit | 19f52387d93b8d8a75298cc387379fb753972c69 (patch) | |
tree | a4492ea89938800d1f8384186e57913b209b659a /pyAggr3g470r.py | |
parent | Possibility to mark all articles as read only by feeds. (diff) | |
download | newspipe-19f52387d93b8d8a75298cc387379fb753972c69.tar.gz newspipe-19f52387d93b8d8a75298cc387379fb753972c69.tar.bz2 newspipe-19f52387d93b8d8a75298cc387379fb753972c69.zip |
Little improvement (Possibility to mark all articles as read only by feeds.)
Diffstat (limited to 'pyAggr3g470r.py')
-rw-r--r-- | pyAggr3g470r.py | 6 |
1 files 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 += "<br />\n" html += """<a href="/all_articles/%s">All articles</a>""" % (rss_feed_id,) - html += """ <a href="/mark_as_read/Feed:%s">Mark all as read</a>""" % (rss_feed_id,) + html += """ <a href="/mark_as_read/Feed_FromMainPage:%s">Mark all as read</a>""" % (rss_feed_id,) if self.dic_info[rss_feed_id][1] != 0: html += """ <a href="/unread/%s" title="Unread article(s)" >Unread article(s) (%s)</a>""" % (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) |