diff options
author | cedricbonhomme <devnull@localhost> | 2012-04-22 22:16:29 +0200 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2012-04-22 22:16:29 +0200 |
commit | 2d14c5edb04fb2e24195c4056d8c65cbdc7e3bf5 (patch) | |
tree | c751079cea01a895d16aee73ffaaf7f9e39aee4b /source | |
parent | Minor refactoring with pylint. (diff) | |
download | newspipe-2d14c5edb04fb2e24195c4056d8c65cbdc7e3bf5.tar.gz newspipe-2d14c5edb04fb2e24195c4056d8c65cbdc7e3bf5.tar.bz2 newspipe-2d14c5edb04fb2e24195c4056d8c65cbdc7e3bf5.zip |
Removed print_collections() function.
Diffstat (limited to 'source')
-rw-r--r-- | source/mongodb.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/source/mongodb.py b/source/mongodb.py index d00b453e..a12b6146 100644 --- a/source/mongodb.py +++ b/source/mongodb.py @@ -107,17 +107,6 @@ class Articles(object): cursor = collection.find({"type":1, condition[0]:condition[1]}) return cursor.sort([("article_date", pymongo.DESCENDING)]) - def print_articles_from_collection(self, collection_id): - """ - Print the articles of a collection. - """ - collection = self.db[str(collection_id)] - cursor = collection.find({"type":1}) - print "Article for the collection", collection_id - for d in cursor: - print d - print - def nb_articles(self, feed_id=None): """ Return the number of users. @@ -238,11 +227,6 @@ if __name__ == "__main__": } #articles.add_articles([article_dic1, article_dic2], 42) - - - # Print articles of the collection - #articles.print_articles_from_collection("http://esr.ibiblio.org/?feed=rss2") - print "All articles:" #print articles.get_all_articles() |