diff options
author | cedricbonhomme <devnull@localhost> | 2012-05-04 07:35:43 +0200 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2012-05-04 07:35:43 +0200 |
commit | e20dfe678cf83021db38fe38c2ef6df24271e612 (patch) | |
tree | bdc90167a95d80008ae3ccf4eb185466838bd699 /source | |
parent | Distant MongoDB connection working (tested with AlwaysData). (diff) | |
download | newspipe-e20dfe678cf83021db38fe38c2ef6df24271e612.tar.gz newspipe-e20dfe678cf83021db38fe38c2ef6df24271e612.tar.bz2 newspipe-e20dfe678cf83021db38fe38c2ef6df24271e612.zip |
Minor bugix. DB instantiation was done twice.
Diffstat (limited to 'source')
-rw-r--r-- | source/mongodb.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/source/mongodb.py b/source/mongodb.py index fd605465..2ff241a9 100644 --- a/source/mongodb.py +++ b/source/mongodb.py @@ -22,7 +22,6 @@ class Articles(object): self.connection = pymongo.connection.Connection(url, port) self.db = pymongo.database.Database(self.connection, db_name) self.db.authenticate(user, password) - self.db = self.connection[db_name] def add_collection(self, new_collection): """ |