Skip to content
Snippets Groups Projects
Commit 138b8ab5 authored by Gunnar Schaefer's avatar Gunnar Schaefer Committed by Renzo Frigato
Browse files

Add j option to MongoClient

parent 614ad92c
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ def configure_db(db_uri, site_id, site_name, api_uri):
global db
for i in range(3):
try:
db = pymongo.MongoClient(db_uri).get_default_database()
db = pymongo.MongoClient(db_uri, j=True).get_default_database()
# TODO jobs indexes
# TODO review all indexes
db.projects.create_index([('gid', 1), ('name', 1)])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment