aboutsummaryrefslogtreecommitdiff
path: root/gn2
diff options
context:
space:
mode:
authorAlexander_Kabui2024-09-12 22:32:51 +0300
committerAlexander_Kabui2024-09-12 22:32:51 +0300
commit18263411f6d38d3c5972693aa5afa23642099b61 (patch)
treefa8ff0e1ce52d09d3cf1b3abbe8dce3e9b86b041 /gn2
parent386271aa9acfa6aaece858a8b7b0f8ab4e4e9db4 (diff)
downloadgenenetwork2-18263411f6d38d3c5972693aa5afa23642099b61.tar.gz
Autopep8 fixes.
Diffstat (limited to 'gn2')
-rw-r--r--gn2/wqflask/api/markdown.py13
1 files changed, 9 insertions, 4 deletions
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"]
)