Skip to content
Snippets Groups Projects
Commit eb899b56 authored by Jeremy M Fee's avatar Jeremy M Fee
Browse files

Treat METADATA_ENDPOINT as boolean

parent 95bd17d3
No related branches found
No related tags found
2 merge requests!146Release CMO metadata to production,!22Add readonly, public metadata service
This commit is part of merge request !22. Comments created here will be created in the context of that merge request.
......@@ -20,7 +20,7 @@ ERROR_CODE_MESSAGES = {
503: "Service Unavailable",
}
METADATA_ENDPOINT = os.getenv("METADATA_ENDPOINT", False)
METADATA_ENDPOINT = bool(os.getenv("METADATA_ENDPOINT", False))
VERSION = os.getenv("GEOMAG_VERSION", "version")
......@@ -31,7 +31,7 @@ app.include_router(data.router)
app.include_router(elements.router)
app.include_router(observatories.router)
if METADATA_ENDPOINT == True:
if METADATA_ENDPOINT:
app.include_router(metadata.router)
......
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