From 63c90d88499c2cda1b3da0960e179856aaba05c9 Mon Sep 17 00:00:00 2001 From: Alexander Kabui Date: Thu, 26 Nov 2020 23:00:53 +0300 Subject: add doc string for render_markdown in wqflask/markdown_routes.py --- wqflask/wqflask/markdown_routes.py | 2 ++ 1 file changed, 2 insertions(+) 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/") -- cgit v1.2.3