aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kabui2020-11-26 23:00:53 +0300
committerAlexander Kabui2020-11-26 23:00:53 +0300
commit63c90d88499c2cda1b3da0960e179856aaba05c9 (patch)
tree670b072be697b6e624b7d496b5a98876189325fe
parent8a74593bfda0d9e5e681046044c262713073164b (diff)
downloadgenenetwork2-63c90d88499c2cda1b3da0960e179856aaba05c9.tar.gz
add doc string for render_markdown in wqflask/markdown_routes.py
-rw-r--r--wqflask/wqflask/markdown_routes.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/wqflask/wqflask/markdown_routes.py b/wqflask/wqflask/markdown_routes.py
index 093dffeb..7e6c7948 100644
--- a/wqflask/wqflask/markdown_routes.py
+++ b/wqflask/wqflask/markdown_routes.py
@@ -16,6 +16,8 @@ policies_blueprint = Blueprint("policies_blueprint", __name__)
facilities_blueprint = Blueprint("facilities_blueprint", __name__)
def render_markdown(file_name):
+ """Try to fetch the file name from Github and if that fails, try to
+look for it inside the file system """
github_url = ("https://raw.githubusercontent.com/"
"genenetwork/gn-docs/master/")