diff --git a/api.py b/api.py index eaab017..d97d34c 100644 --- a/api.py +++ b/api.py @@ -59,4 +59,4 @@ async def get_badge(repo: str, branch: str=None, action: str=None): status_code=status.HTTP_404_NOT_FOUND, detail="Repo not found", ) - return RedirectResponse("https://img.shields.io/badge/" + badge_dict[repo, branch, action] if branch is not None or action is not None else badge_dict[repo]) + return RedirectResponse("https://img.shields.io/badge/" + (badge_dict[repo, branch, action] if branch is not None or action is not None else badge_dict[repo]))