From b3ae6decfca240e5eef06441ef917daa935a7c09 Mon Sep 17 00:00:00 2001 From: Patrick Huck Date: Thu, 17 Oct 2024 16:58:34 -0700 Subject: [PATCH] Revert "Revert "new mongo host env var"" This reverts commit bc9785ef8eafbe2533a9052964cdd773c8fc9eec. --- emmet-api/molecule_resources.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/emmet-api/molecule_resources.py b/emmet-api/molecule_resources.py index 8b30bb36cd..e17295dfbd 100644 --- a/emmet-api/molecule_resources.py +++ b/emmet-api/molecule_resources.py @@ -31,10 +31,7 @@ resources = {} default_settings = MAPISettings() - -db_uri = os.environ.get("MPCONTRIBS_MONGO_HOST", None) -db_version = default_settings.DB_VERSION -db_suffix = os.environ["MAPI_DB_NAME_SUFFIX"] +db_uri = os.environ.get("MPMOLECULES_MONGO_HOST", None) if db_uri: # allow db_uri to be set with a different protocol scheme