From 8efcd1b23b28c2916785a884dc409242c6747424 Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Tue, 1 May 2012 15:22:21 +0200 Subject: Added comment. Bugfix at feed/ page. --- source/mongodb.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'source/mongodb.py') 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}) -- cgit