MCPcopy
hub / github.com/hyperopt/hyperopt / as_mongo_str

Function as_mongo_str

hyperopt/mongoexp.py:1188–1191  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

1186
1187
1188def as_mongo_str(s):
1189 if s.startswith("mongo://"):
1190 return s
1191 return "mongo://%s" % s
1192
1193
1194def number_of_jobs_in_db(options):

Callers 4

connection_stringMethod · 0.90
test_main_workerFunction · 0.90
number_of_jobs_in_dbFunction · 0.85
main_worker_helperFunction · 0.85

Calls

no outgoing calls

Tested by 2

connection_stringMethod · 0.72
test_main_workerFunction · 0.72