Skip to content

Commit

Permalink
Update main.py to display scm version
Browse files Browse the repository at this point in the history
  • Loading branch information
dwinston authored Nov 21, 2023
1 parent 9a807e2 commit bb24ebf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions nmdc_runtime/api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,7 @@ async def get_versions():

app = FastAPI(
title="NMDC Runtime API",
# TODO this does not work: `version=get_version()`
# Below is hotfix for reasonable display in prod deployment.
version="1.0.7",
version=get_version(),
description=(
"The NMDC Runtime API, via on-demand functions "
"and via schedule-based and sensor-based automation, "
Expand Down

1 comment on commit bb24ebf

@eecavanna
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah! I am excited to see this in production (once deployed)!

Please sign in to comment.