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 6, 2024
1 parent 703fda5 commit f705f2b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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')}",
})
})

0 comments on commit f705f2b

Please sign in to comment.