Skip to content

Commit

Permalink
Add build info
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvain-morin committed Jul 3, 2024
1 parent 88fafe0 commit 9247b15
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/inat_vision_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ def h3_04_bounds_route(self):

def build_info_route(self):
return {
"git_branch": os.environ["GIT_BRANCH"],
"git_commit": os.environ["GIT_COMMIT"],
"image_tag": os.environ["IMAGE_TAG"],
"build_date": os.environ["BUILD_DATE"]
"git_branch": os.getenv("GIT_BRANCH", ""),
"git_commit": os.getenv("GIT_COMMIT", ""),
"image_tag": os.getenv("IMAGE_TAG", ""),
"build_date": os.getenv("BUILD_DATE", "")
}

def index_route(self):
Expand Down

0 comments on commit 9247b15

Please sign in to comment.