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 +
+ New query + Query +
+