diff options
author | BonfaceKilz | 2020-11-20 18:47:21 +0300 |
---|---|---|
committer | BonfaceKilz | 2020-11-20 18:47:21 +0300 |
commit | 51f05b5fa896a2ed636ecb08bf69d929896db517 (patch) | |
tree | f42d851a6d6b2dcf8704ac89df73710a834953a0 /wqflask | |
parent | 97d3e0907640fd32f9ff49a79f8a453852727f72 (diff) | |
download | genenetwork2-51f05b5fa896a2ed636ecb08bf69d929896db517.tar.gz |
Point url for fetching md content to gn-docs repo
* wqflask/wqflask/markdown_routes.py (render_markdown): Use gn-docs
URL to fetch markdown content.
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/markdown_routes.py | 8 |
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")) |