From e25c048717062bb114c61a431990f1af1402b2df Mon Sep 17 00:00:00 2001 From: drunkendog Date: Mon, 25 Sep 2023 20:54:13 +0100 Subject: [PATCH] Add brackets to fix bug --- api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]))