diff options
author | cedricbonhomme <devnull@localhost> | 2012-03-04 00:10:11 +0100 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2012-03-04 00:10:11 +0100 |
commit | 6b670248b734a5347393ce7f51e3633ca0cf1444 (patch) | |
tree | a7b648f6bcaed3bc1b50f2c65ed8f1dc51be6402 | |
parent | Mark as read for a feed is working. (diff) | |
download | newspipe-6b670248b734a5347393ce7f51e3633ca0cf1444.tar.gz newspipe-6b670248b734a5347393ce7f51e3633ca0cf1444.tar.bz2 newspipe-6b670248b734a5347393ce7f51e3633ca0cf1444.zip |
Mark all articles as read (from the main page) is working.
-rw-r--r-- | mongodb.py | 3 | ||||
-rwxr-xr-x | pyAggr3g470r.py | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -138,7 +138,8 @@ class Articles(object): collection = self.db[str(feed_id)] collection.update({"type": 1}, {"$set": {"article_readed": readed}}, multi=True) else: - collection.update({"article_id": article_id}, {"$set": {"article_readed": readed}}) + for feed_id in self.db.collection_names(): + self.mark_as_read(readed, feed_id, None) def list_collections(self): """ diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py index 6dc48d43..ccb47150 100755 --- a/pyAggr3g470r.py +++ b/pyAggr3g470r.py @@ -961,7 +961,7 @@ class Root: # Mark all articles as read. if param == "": - pass + self.articles.mark_as_read(True, None, None) # Mark all articles from a feed as read. elif param == "Feed" or param == "Feed_FromMainPage": self.articles.mark_as_read(True, identifiant, None) |