aboutsummaryrefslogtreecommitdiff
path: root/mongodb.py
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2012-03-03 19:37:36 +0100
committercedricbonhomme <devnull@localhost>2012-03-03 19:37:36 +0100
commitcd9d51ea85dc20c7f85fec4e92324d22ba3c0194 (patch)
treefef6844ee3ab3291b807e949c1fe9bb44c9677c6 /mongodb.py
parentFeed information page is working with MongoDB. (diff)
downloadnewspipe-cd9d51ea85dc20c7f85fec4e92324d22ba3c0194.tar.gz
newspipe-cd9d51ea85dc20c7f85fec4e92324d22ba3c0194.tar.bz2
newspipe-cd9d51ea85dc20c7f85fec4e92324d22ba3c0194.zip
Article page is now working with MongoDB.
Diffstat (limited to 'mongodb.py')
-rw-r--r--mongodb.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/mongodb.py b/mongodb.py
index 3faaa318..2360d1a1 100644
--- a/mongodb.py
+++ b/mongodb.py
@@ -58,6 +58,12 @@ class Articles(object):
articles.append(collection)
return articles
+ def get_article(self, feed_id, article_id):
+ """
+ """
+ collection = self.db[str(feed_id)]
+ return collection.find({"article_id":article_id}).next()
+
def get_all_collections(self):
"""
"""
bgstack15