Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions node_normalizer/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,14 @@ async def status() -> Dict:
# Load rcfile as a YAML file using safe loading.
redis_config = yaml.safe_load(rcfile)

# Do we know the Babel version and version URL? It will be stored in an environmental variable if we do.
babel_version = os.environ.get("BABEL_VERSION", "unknown")
babel_version_url = os.environ.get("BABEL_VERSION_URL", "")

return {
"status": "running",
"babel_version": babel_version,
"babel_version_url": babel_version_url,
"databases": {
"eq_id_to_id_db": {
"dbname": "id-id",
Expand Down