From f705f2b50bd87434128ba21d73c7ae9b97e41339 Mon Sep 17 00:00:00 2001 From: Ronald Cantillo <42101257+Rooyca@users.noreply.github.com> Date: Thu, 6 Jun 2024 04:51:33 -0500 Subject: [PATCH] Update routes.py --- app/routes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/routes.py b/app/routes.py index f7fffbf..b0e8010 100644 --- a/app/routes.py +++ b/app/routes.py @@ -28,7 +28,9 @@ def get_user_markdown(request: Request, username: str): # check if a file with username exists in repo try: response = requests.get(URL_REPO) + print(response) data = response.json() + print(data) for item in data: if item.get("name") == f"{username}.md": url = item.get("download_url") @@ -83,4 +85,4 @@ def index(request: Request, username: str): "twitter": data.get("twitter_url"), "blog": data.get("blog"), "page_title": f"GHTree | {data.get('login')}", - }) \ No newline at end of file + })