diff options
author | cedricbonhomme <devnull@localhost> | 2012-03-04 10:34:16 +0100 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2012-03-04 10:34:16 +0100 |
commit | 28f8cdd3881b92f7e6bbc248c0c701383cc5c53b (patch) | |
tree | 8ad585440a19fd30ef42b9b0700eb620019d1d75 | |
parent | Minof bugfix in mark_as_read(): wrong redirection. (diff) | |
download | newspipe-28f8cdd3881b92f7e6bbc248c0c701383cc5c53b.tar.gz newspipe-28f8cdd3881b92f7e6bbc248c0c701383cc5c53b.tar.bz2 newspipe-28f8cdd3881b92f7e6bbc248c0c701383cc5c53b.zip |
Right menu: OK.
-rwxr-xr-x | pyAggr3g470r.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py index a496c880..9f97e5d6 100755 --- a/pyAggr3g470r.py +++ b/pyAggr3g470r.py @@ -232,13 +232,11 @@ class Root: feeds = self.mongo.get_all_collections() html = """<div class="nav_container">Your feeds (%s):<br />\n""" % len(feeds) for feed in feeds: - feed["nb_unread_articles"] = 0 #hack - if feed["nb_unread_articles"] != 0: + if self.mongo.nb_unread_articles(feed["feed_id"]) != 0: # not readed articles are in bold not_read_begin, not_read_end = "<b>", "</b>" else: not_read_begin, not_read_end = "", "" - feed["nb_articles"] = "5" html += """<div><a href="/#%s">%s</a> (<a href="/unread/%s" title="Unread article(s)">%s%s%s</a> / %s)</div>""" % \ (feed["feed_id"], feed["feed_title"], feed["feed_id"], not_read_begin, \ self.mongo.nb_unread_articles(feed["feed_id"]), not_read_end, self.mongo.nb_articles(feed["feed_id"])) |