From e20dfe678cf83021db38fe38c2ef6df24271e612 Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Fri, 4 May 2012 07:35:43 +0200 Subject: Minor bugix. DB instantiation was done twice. --- source/mongodb.py | 1 - 1 file changed, 1 deletion(-) (limited to 'source') 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): """ -- cgit