From cb714f0925f129ac23041428e86e5a4c3b477d29 Mon Sep 17 00:00:00 2001 From: drunkendog Date: Mon, 25 Sep 2023 20:58:06 +0100 Subject: [PATCH] Replace or with and to fix bug --- api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.py b/api.py index 364b057..a19a70f 100644 --- a/api.py +++ b/api.py @@ -49,7 +49,7 @@ async def set_badge(repo: str, new_badge: str, branch: str=None, action: str=Non @app.get("/get_badge/") async def get_badge(repo: str, branch: str=None, action: str=None): - if (repo, branch, action) not in badge_dict.keys() or repo not in badge_dict.keys(): + if (repo, branch, action) not in badge_dict.keys() and repo not in badge_dict.keys(): raise HTTPException( status_code=status.HTTP_404_NOT_FOUND, detail="Badge not found",