aboutsummaryrefslogtreecommitdiff
path: root/source/mongodb.py
diff options
context:
space:
mode:
Diffstat (limited to 'source/mongodb.py')
-rw-r--r--source/mongodb.py10
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})
bgstack15