diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-03-19 07:52:27 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-03-19 07:52:27 +0100 |
commit | eb308a35f77013c1679a86fbe8de15ee4657f8ef (patch) | |
tree | e17061bf545ea99d170d03c667ee60986cb58c1d | |
parent | Typo. (diff) | |
download | newspipe-eb308a35f77013c1679a86fbe8de15ee4657f8ef.tar.gz newspipe-eb308a35f77013c1679a86fbe8de15ee4657f8ef.tar.bz2 newspipe-eb308a35f77013c1679a86fbe8de15ee4657f8ef.zip |
Added authentication to the MongoDB database for testbinarytree script.
-rw-r--r-- | source/testbinarytree.py | 5 |
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() |