diff options
author | cedricbonhomme <devnull@localhost> | 2012-05-01 15:22:21 +0200 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2012-05-01 15:22:21 +0200 |
commit | 8efcd1b23b28c2916785a884dc409242c6747424 (patch) | |
tree | 843fa290cabda57211c641a9dc9aeb6a64010b73 /source/mongodb.py | |
parent | Export to EPUB OK. (diff) | |
download | newspipe-8efcd1b23b28c2916785a884dc409242c6747424.tar.gz newspipe-8efcd1b23b28c2916785a884dc409242c6747424.tar.bz2 newspipe-8efcd1b23b28c2916785a884dc409242c6747424.zip |
Added comment. Bugfix at feed/ page.
Diffstat (limited to 'source/mongodb.py')
-rw-r--r-- | source/mongodb.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/mongodb.py b/source/mongodb.py index a4c74669..b3527794 100644 --- a/source/mongodb.py +++ b/source/mongodb.py @@ -110,7 +110,8 @@ class Articles(object): def nb_articles(self, feed_id=None): """ - Return the number of users. + Return the number of articles of a feed + or of all the database. """ if feed_id is not None: collection = self.db[feed_id] @@ -124,7 +125,8 @@ class Articles(object): def nb_favorites(self, feed_id=None): """ - Return the number of favorites articles. + Return the number of favorites articles of a feed + or of all the database. """ if feed_id is not None: # only for a feed @@ -150,6 +152,10 @@ class Articles(object): return nb_mail_notifications def nb_unread_articles(self, feed_id=None): + """ + Return the number of unread articles of a feed + or of all the database. + """ if feed_id is not None: collection = self.db[feed_id] cursor = collection.find({'article_readed':False}) |