aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn2/wqflask/views.py')
-rw-r--r--gn2/wqflask/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gn2/wqflask/views.py b/gn2/wqflask/views.py
index 5846c86a..e306cc2c 100644
--- a/gn2/wqflask/views.py
+++ b/gn2/wqflask/views.py
@@ -269,6 +269,7 @@ def gsearchtable():
return flask.jsonify(current_page)
+
@app.route("/gnqna", methods=["POST", "GET"])
@require_oauth2
def gnqna():
@@ -307,7 +308,7 @@ def gnqna():
"search_url": f"/gnqna?{safe_query}",
}
return jsonify(ai_result)
- return render_template("gnqa_answer.html", **search_result)
+ return render_template("gnqa.html", **search_result)
else:
return render_template("gnqa.html")
if request.method == "POST":