aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander_Kabui2024-08-14 22:16:48 +0300
committerBonfaceKilz2024-08-29 18:58:56 +0300
commit884d18b91b6f104f3078632ad6476ed78caa5344 (patch)
tree67e726c4b06fc90b30bdbb8ba5e1a81bbe261c0c
parentedd59d8f09174e3c16ce1f8b9881af0601d5b273 (diff)
downloadgenenetwork2-884d18b91b6f104f3078632ad6476ed78caa5344.tar.gz
Replace _ with - for search query parameters.
-rw-r--r--gn2/wqflask/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn2/wqflask/views.py b/gn2/wqflask/views.py
index 562976b1..4b003613 100644
--- a/gn2/wqflask/views.py
+++ b/gn2/wqflask/views.py
@@ -312,7 +312,7 @@ def gnqna():
@app.route("/editor/", methods=["GET"])
def edit_gn_doc_file():
- file_path = request.args.get("file_path", "")
+ file_path = request.args.get("file-path", "")
response = requests.get(f"http://localhost:8091/edit?file_path={file_path}")
response.raise_for_status()
return render_template("gn_editor.html", **response.json())