diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-08-20 07:43:45 +0200 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-08-20 07:43:45 +0200 |
commit | 0a5ef0adfbe02cef8814e8a97cc647231fe3db6d (patch) | |
tree | 880dd6a0a739873a041288f0f67499c4446d5094 /source | |
parent | Bugfix: there was a problem when enabling email notifications for a feed. (diff) | |
download | newspipe-0a5ef0adfbe02cef8814e8a97cc647231fe3db6d.tar.gz newspipe-0a5ef0adfbe02cef8814e8a97cc647231fe3db6d.tar.bz2 newspipe-0a5ef0adfbe02cef8814e8a97cc647231fe3db6d.zip |
Added some comments.
Diffstat (limited to 'source')
-rw-r--r-- | source/mongodb.py | 3 |
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)] |