From 4efb65ea44646679227d456b24699335f35e4d8b Mon Sep 17 00:00:00 2001 From: Alexandru Date: Tue, 17 Sep 2024 21:31:47 +0300 Subject: [PATCH] fix --- app.py | 5 +++-- templates/index.html | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 8588257..1f1dd54 100644 --- a/app.py +++ b/app.py @@ -19,7 +19,7 @@ def index(): cs.execute(statement) return render_template("index.html", comments=cs.fetchall()) -@app.route('/submit', methods=["POST"]) +@app.route('/gb/submit', methods=["POST"]) def submit(): errors = [] name = request.form.get("name") @@ -46,4 +46,5 @@ def submit(): values = (name, website, comment, int(time.time()), str(request.remote_addr)) cs.execute(statement, values) db.commit() - return redirect("/") \ No newline at end of file + #change this if you run it on anything other than /gb + return redirect("/gb") \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index fb80a67..8fe7c7f 100644 --- a/templates/index.html +++ b/templates/index.html @@ -7,7 +7,7 @@ -
+