diff options
author | Alexander_Kabui | 2024-08-14 22:16:48 +0300 |
---|---|---|
committer | BonfaceKilz | 2024-08-29 18:58:56 +0300 |
commit | 884d18b91b6f104f3078632ad6476ed78caa5344 (patch) | |
tree | 67e726c4b06fc90b30bdbb8ba5e1a81bbe261c0c | |
parent | edd59d8f09174e3c16ce1f8b9881af0601d5b273 (diff) | |
download | genenetwork2-884d18b91b6f104f3078632ad6476ed78caa5344.tar.gz |
Replace _ with - for search query parameters.
-rw-r--r-- | gn2/wqflask/views.py | 2 |
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()) |