aboutsummaryrefslogtreecommitdiff
path: root/source/mongodb.py
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2012-05-01 15:22:21 +0200
committercedricbonhomme <devnull@localhost>2012-05-01 15:22:21 +0200
commit8efcd1b23b28c2916785a884dc409242c6747424 (patch)
tree843fa290cabda57211c641a9dc9aeb6a64010b73 /source/mongodb.py
parentExport to EPUB OK. (diff)
downloadnewspipe-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.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