From 884d18b91b6f104f3078632ad6476ed78caa5344 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Wed, 14 Aug 2024 22:16:48 +0300 Subject: Replace _ with - for search query parameters. --- gn2/wqflask/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) -- cgit v1.2.3