aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2012-05-04 07:35:43 +0200
committercedricbonhomme <devnull@localhost>2012-05-04 07:35:43 +0200
commite20dfe678cf83021db38fe38c2ef6df24271e612 (patch)
treebdc90167a95d80008ae3ccf4eb185466838bd699 /source
parentDistant MongoDB connection working (tested with AlwaysData). (diff)
downloadnewspipe-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.py1
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):
"""
bgstack15