aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/markdown_routes.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/wqflask/wqflask/markdown_routes.py b/wqflask/wqflask/markdown_routes.py
index 33092947..48a1ea81 100644
--- a/wqflask/wqflask/markdown_routes.py
+++ b/wqflask/wqflask/markdown_routes.py
@@ -17,11 +17,9 @@ def render_markdown(file_name):
look for it inside the file system
"""
- markdown_url = (f"https://raw.githubusercontent.com"
- f"/genenetwork/genenetwork2/"
- f"wqflask/wqflask/static/"
- f"{file_name}")
- md_content = requests.get(markdown_url)
+ github_url = ("https://raw.githubusercontent.com/"
+ "genenetwork/gn-docs/master/")
+ md_content = requests.get(f"{github_url}{file_name}")
if md_content.status_code == 200:
return mistune.html(md_content.content.decode("utf-8"))