Skip to content

Commit

Permalink
Update routes.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Rooyca authored Jun 14, 2024
1 parent f508e05 commit ece62bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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", {
Expand Down

0 comments on commit ece62bd

Please sign in to comment.