aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-08-20 07:43:45 +0200
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-08-20 07:43:45 +0200
commit0a5ef0adfbe02cef8814e8a97cc647231fe3db6d (patch)
tree880dd6a0a739873a041288f0f67499c4446d5094
parentBugfix: there was a problem when enabling email notifications for a feed. (diff)
downloadnewspipe-0a5ef0adfbe02cef8814e8a97cc647231fe3db6d.tar.gz
newspipe-0a5ef0adfbe02cef8814e8a97cc647231fe3db6d.tar.bz2
newspipe-0a5ef0adfbe02cef8814e8a97cc647231fe3db6d.zip
Added some comments.
-rw-r--r--source/mongodb.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/mongodb.py b/source/mongodb.py
index 241e8dd0..7dc83394 100644
--- a/source/mongodb.py
+++ b/source/mongodb.py
@@ -30,6 +30,8 @@ import pymongo
class Articles(object):
"""
+ This class is responsible of the management of the MongoDB
+ database.
"""
def __init__(self, url='localhost', port=27017, db_name="pyaggr3g470r", user="", password=""):
"""
@@ -211,6 +213,7 @@ class Articles(object):
def mark_as_read(self, readed, feed_id=None, article_id=None):
"""
+ Mark one or several articles as read.
"""
if feed_id != None and article_id != None:
collection = self.db[str(feed_id)]
bgstack15