From 885c07d0bac6d2d2af153e7ae5e6e2f761e74fbd Mon Sep 17 00:00:00 2001 From: Alexandru Date: Thu, 19 Sep 2024 20:44:47 +0300 Subject: [PATCH] f --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 956bc8d..a514357 100644 --- a/app.py +++ b/app.py @@ -13,7 +13,7 @@ app.secret_key = hashlib.md5(os.urandom(32)).hexdigest() def parsetime(value): return time.strftime('%Y-%m-%d %H:%M', time.localtime(value)) -@app.route('/gb') +@app.route('/g') def index(): statement = 'SELECT "id", "name", "website", "comment", "date", "ip" FROM "entries" ORDER BY id DESC' cs.execute(statement) @@ -24,7 +24,7 @@ def index(): print(sites) return render_template("index.html", comments=comments, sites=sites) -@app.route('/gb/submit', methods=["POST"]) +@app.route('/submit', methods=["POST"]) def submit(): errors = [] name = request.form.get("name")