aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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