From 64580f02cb20e2ee5dd33acb65f3eb119e5ecca0 Mon Sep 17 00:00:00 2001 From: bton Date: Fri, 16 Feb 2024 21:19:11 +0100 Subject: [PATCH] New error --- Website/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Website/__init__.py b/Website/__init__.py index 2c06ae1..d6deb4d 100644 --- a/Website/__init__.py +++ b/Website/__init__.py @@ -358,9 +358,8 @@ def create_app(test_config=None): c = db.cursor() try: tag_id = request.form["id"] - print(tag_id) except: - tag_id = request.args.get("id") + return make_response(json.dumps({"mode":"error", "error":"638"})) c.execute(f"SELECT * FROM tags WHERE tagid=?", [tag_id]) tag_list = c.fetchall()