aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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