From ece62bd80d63bbdc48d50bf1bec611096a1ff3d0 Mon Sep 17 00:00:00 2001 From: Ronald Cantillo <42101257+Rooyca@users.noreply.github.com> Date: Fri, 14 Jun 2024 17:57:03 -0500 Subject: [PATCH] Update routes.py --- app/routes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/routes.py b/app/routes.py index 30c1a0f..a196f18 100644 --- a/app/routes.py +++ b/app/routes.py @@ -30,8 +30,8 @@ def get_user_markdown(request: Request, username: str): response = requests.get(URL_REPO) data = response.json() for item in data: - if item.get("name") == f"{username}.md": - url = item.get("download_url") + if item["name"] == f"{username}.md": + url = item["download_url"] break except FileNotFoundError: return templates.TemplateResponse("404.html", {