Skip to content

Commit

Permalink
handling AWS auth
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Cosentino committed Jan 3, 2024
1 parent 1d9062a commit bf8d036
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions api.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
async def health_check():
"""Health check endpoint."""
results = {}
results["version"] = version

# Check Telegram Bot API connectivity
try:
Expand All @@ -44,8 +43,9 @@ async def health_check():
overall_health = all(status is True for status in results.values())

if overall_health:
return {"status": "healthy", "details": results}
return {"version": version, "status": "healthy", "details": results}

raise HTTPException(
status_code=503, detail={"status": "unhealthy", "details": results}
status_code=503,
detail={"version": version, "status": "unhealthy", "details": results},
)
2 changes: 1 addition & 1 deletion release.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@

__metaclass__ = type # pylint: disable=invalid-name

__version__ = "v0.1.3"
__version__ = "v0.1.4"
__author__ = "F."

0 comments on commit bf8d036

Please sign in to comment.