From 5a27f3d25d62921c2d022ec38a11bde5009691ef Mon Sep 17 00:00:00 2001 From: David Cruciani Date: Thu, 22 Feb 2024 14:35:47 +0100 Subject: [PATCH] chg: [website] query with same name --- website/app/home.py | 2 ++ website/app/templates/query.html | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/website/app/home.py b/website/app/home.py index 9b26ba4..7835333 100644 --- a/website/app/home.py +++ b/website/app/home.py @@ -13,6 +13,8 @@ home_blueprint = Blueprint( @home_blueprint.route("/") def home(): + if "query" in request.args: + return render_template("home.html", query=request.args.get("query")) return render_template("home.html") @home_blueprint.route("/home/", methods=["GET", "POST"]) diff --git a/website/app/templates/query.html b/website/app/templates/query.html index 6de28be..26441b5 100644 --- a/website/app/templates/query.html +++ b/website/app/templates/query.html @@ -11,7 +11,11 @@

{{query}}

- New query + +