diff --git a/tests/test_batchq.py b/tests/test_batchq.py index 9e86b2c..690d8a1 100644 --- a/tests/test_batchq.py +++ b/tests/test_batchq.py @@ -196,3 +196,5 @@ def test_submit_job_arguments(): assert ( len(missing_params) == 0 ), f"Missing parameters in submit_job: {', '.join(missing_params)}" + + \ No newline at end of file diff --git a/utilix/rundb.py b/utilix/rundb.py index 8032fca..97dc379 100644 --- a/utilix/rundb.py +++ b/utilix/rundb.py @@ -535,7 +535,7 @@ def pymongo_collection(collection='runs', **kwargs): if not database: database = uconfig.get('RunDB', 'pymongo_database') uri = uri.format(user=user, pw=pw, url=url) - c = pymongo.MongoClient(uri, readPreference='secondaryPreferred') + c = pymongo.MongoClient(uri, readPreference='secondary') DB = c[database] coll = DB[collection] # Checkout the collection we are returning and raise errors if you want