aboutsummaryrefslogtreecommitdiff
path: root/mongodb.py
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2012-03-04 00:10:11 +0100
committercedricbonhomme <devnull@localhost>2012-03-04 00:10:11 +0100
commit6b670248b734a5347393ce7f51e3633ca0cf1444 (patch)
treea7b648f6bcaed3bc1b50f2c65ed8f1dc51be6402 /mongodb.py
parentMark as read for a feed is working. (diff)
downloadnewspipe-6b670248b734a5347393ce7f51e3633ca0cf1444.tar.gz
newspipe-6b670248b734a5347393ce7f51e3633ca0cf1444.tar.bz2
newspipe-6b670248b734a5347393ce7f51e3633ca0cf1444.zip
Mark all articles as read (from the main page) is working.
Diffstat (limited to 'mongodb.py')
-rw-r--r--mongodb.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mongodb.py b/mongodb.py
index bc318add..991ed62b 100644
--- a/mongodb.py
+++ b/mongodb.py
@@ -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):
"""
bgstack15