aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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