From 18263411f6d38d3c5972693aa5afa23642099b61 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Thu, 12 Sep 2024 22:32:51 +0300 Subject: Autopep8 fixes. --- gn2/wqflask/api/markdown.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'gn2') diff --git a/gn2/wqflask/api/markdown.py b/gn2/wqflask/api/markdown.py index 062c8f6c..8f153cb7 100644 --- a/gn2/wqflask/api/markdown.py +++ b/gn2/wqflask/api/markdown.py @@ -34,7 +34,8 @@ def fetch_raw_markdown(file_path): This method fetches files from genenetwork:gn docs repo """ # todo remove hardcoded file path - response = requests.get(f"http://localhost:8091/edit?file_path={file_path}") + response = requests.get( + f"http://localhost:8091/edit?file_path={file_path}") response.raise_for_status() return response.json() @@ -121,10 +122,12 @@ def glossary(): file_path=file_data["file_path"] ) + @references_blueprint.route('/') def references(): - file_data = fetch_raw_markdown(file_path="general/references/references.md") + file_data = fetch_raw_markdown( + file_path="general/references/references.md") return render_template( "references.html", rendered_markdown=render_markdown_as_html(file_data["content"]), @@ -175,7 +178,8 @@ def environments(): 200 ) # Fallback: Fetch file from server - file_data = fetch_raw_markdown(file_path="general/environment/environment.md") + file_data = fetch_raw_markdown( + file_path="general/environment/environment.md") return (render_template( "environment.html", svg_data=None, @@ -213,7 +217,8 @@ def policies(): def facilities(): file_data = fetch_raw_markdown(file_path="general/help/facilities.md") return render_template("facilities.html", - rendered_markdown=render_markdown_as_html(file_data["content"]), + rendered_markdown=render_markdown_as_html( + file_data["content"]), file_path=file_data["file_path"] ) -- cgit v1.2.3