diff options
author | cedricbonhomme <devnull@localhost> | 2012-03-03 19:37:36 +0100 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2012-03-03 19:37:36 +0100 |
commit | cd9d51ea85dc20c7f85fec4e92324d22ba3c0194 (patch) | |
tree | fef6844ee3ab3291b807e949c1fe9bb44c9677c6 /mongodb.py | |
parent | Feed information page is working with MongoDB. (diff) | |
download | newspipe-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.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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): """ """ |