From d78b5e702eb24ed9f81e0894bfabb70604049a96 Mon Sep 17 00:00:00 2001 From: csd4ni3l Date: Thu, 14 Aug 2025 12:03:51 +0200 Subject: [PATCH] fix grass touching submit page --- main.py | 6 +++++- templates/home.jinja2 | 2 +- templates/leaderboard.jinja2 | 2 +- templates/submit_grass_touching.jinja2 | 4 ++-- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index 5403782..b682dbc 100644 --- a/main.py +++ b/main.py @@ -86,7 +86,7 @@ def resize_image_file(path, max_side=256, fmt="JPEG"): img = img.resize((int(img.width * scale), int(img.height * scale)), Image.LANCZOS) img.save(path, format=fmt) -@app.route("/submit_grass_touching", methods=["POST"]) +@app.route("/grass_touch_submit", methods=["POST"]) @flask_login.login_required def submit_grass_touching(): username = flask_login.current_user.id @@ -108,6 +108,10 @@ def submit_grass_touching(): return redirect("/") +@app.route("/submit_grasstouching") +def submit_grasstouching(): + return render_template("submit_grass_touching.jinja2") + @app.route("/generate_challenge", methods=["POST"]) def generate_challenge_route(): username = request.json["username"] diff --git a/templates/home.jinja2 b/templates/home.jinja2 index 67260d0..d2f4e71 100644 --- a/templates/home.jinja2 +++ b/templates/home.jinja2 @@ -30,7 +30,7 @@ {% else %} {% else %} @@ -30,7 +30,7 @@
-
+

Grass touching submit