aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2012-05-17 08:11:55 +0200
committercedricbonhomme <devnull@localhost>2012-05-17 08:11:55 +0200
commite62ed9367c681b293077c00efff6dd48162571d2 (patch)
treec26f41a576f72a6ff5509fc63bd3a30283d3a977
parentTypo fix. (diff)
downloadnewspipe-e62ed9367c681b293077c00efff6dd48162571d2.tar.gz
newspipe-e62ed9367c681b293077c00efff6dd48162571d2.tar.bz2
newspipe-e62ed9367c681b293077c00efff6dd48162571d2.zip
Minor bugfix in mongodb.py: delete_article function didn't delete articles.
-rw-r--r--source/mongodb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/mongodb.py b/source/mongodb.py
index 2ff241a9..d2f87042 100644
--- a/source/mongodb.py
+++ b/source/mongodb.py
@@ -56,7 +56,7 @@ class Articles(object):
Delete an article.
"""
collection = self.db[str(feed_id)]
- collection.find_and_modify(query={"article_id":article_id}, remove=True)
+ collection.remove(spec_or_id={"article_id":article_id}, safe=True)
def get_feed(self, feed_id):
"""
bgstack15