From 0a5ef0adfbe02cef8814e8a97cc647231fe3db6d Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 20 Aug 2013 07:43:45 +0200 Subject: Added some comments. --- source/mongodb.py | 3 +++ 1 file changed, 3 insertions(+) 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)] -- cgit