aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2012-12-02 13:19:39 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2012-12-02 13:19:39 +0100
commit365d5bca3e47b21a5119f1340cd2be4e32a0537d (patch)
treecd47a10e4d951f2572c3564d38be1d122c0a1642 /source
parentFixed typo name of a function). (diff)
downloadnewspipe-365d5bca3e47b21a5119f1340cd2be4e32a0537d.tar.gz
newspipe-365d5bca3e47b21a5119f1340cd2be4e32a0537d.tar.bz2
newspipe-365d5bca3e47b21a5119f1340cd2be4e32a0537d.zip
Updated comments in mongodb.py.
Diffstat (limited to 'source')
-rw-r--r--source/mongodb.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/mongodb.py b/source/mongodb.py
index 4b777863..b9e6686e 100644
--- a/source/mongodb.py
+++ b/source/mongodb.py
@@ -22,7 +22,7 @@
__author__ = "Cedric Bonhomme"
__version__ = "$Revision: 0.4 $"
__date__ = "$Date: 2012/03/03 $"
-__revision__ = "$Date: 2012/11/30 $"
+__revision__ = "$Date: 2012/12/02 $"
__copyright__ = "Copyright (c) Cedric Bonhomme"
__license__ = "GPLv3"
@@ -82,7 +82,8 @@ class Articles(object):
def get_all_feeds(self, condition=None):
"""
- Return all feeds object.
+ Return all feeds object. The returned list
+ is sorted by alphabetically (by feed name).
"""
feeds = []
collections = self.db.collection_names()
@@ -101,8 +102,8 @@ class Articles(object):
"""
Return one or several articles.
The parameter "condition" is an optional requirement, for example:
- get_articles(feed["feed_id"], condition=("article_readed", False)) will
- return all unread articles of feed.
+ get_articles(feed_id, condition=("article_readed", False)) will
+ return all unread articles of the feed 'feed_id'.
"""
if feed_id == None and article_id == None:
# Return all articles.
bgstack15