New error

This commit is contained in:
bton 2024-02-16 21:19:11 +01:00
parent 56aa79378b
commit 64580f02cb

View file

@ -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()