Skip to content

Commit

Permalink
Revert "Revert "new mongo host env var""
Browse files Browse the repository at this point in the history
This reverts commit bc9785e.
  • Loading branch information
tschaume committed Oct 17, 2024
1 parent 213c131 commit b3ae6de
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions emmet-api/molecule_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b3ae6de

Please sign in to comment.