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 + })