aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-03-19 07:52:27 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-03-19 07:52:27 +0100
commiteb308a35f77013c1679a86fbe8de15ee4657f8ef (patch)
treee17061bf545ea99d170d03c667ee60986cb58c1d /source
parentTypo. (diff)
downloadnewspipe-eb308a35f77013c1679a86fbe8de15ee4657f8ef.tar.gz
newspipe-eb308a35f77013c1679a86fbe8de15ee4657f8ef.tar.bz2
newspipe-eb308a35f77013c1679a86fbe8de15ee4657f8ef.zip
Added authentication to the MongoDB database for testbinarytree script.
Diffstat (limited to 'source')
-rw-r--r--source/testbinarytree.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/testbinarytree.py b/source/testbinarytree.py
index 0d637758..d60df372 100644
--- a/source/testbinarytree.py
+++ b/source/testbinarytree.py
@@ -9,9 +9,12 @@ sys.setrecursionlimit(10**6)
import mongodb
import binarytree
+import conf
print("Loading articles from the database...")
-database = mongodb.Articles()
+database = mongodb.Articles(conf.MONGODB_ADDRESS, conf.MONGODB_PORT, \
+ conf.MONGODB_DBNAME, conf.MONGODB_USER, \
+ conf.MONGODB_PASSWORD)
begin = time.time()
articles = database.get_articles()
end = time.time()
bgstack15