1
0
Fork 0
forked from bton/matekasse
This commit is contained in:
bton 2024-02-14 20:52:50 +01:00
parent e11512f458
commit e9acd07fb4

View file

@ -358,6 +358,7 @@ def create_app(test_config=None):
c = db.cursor() c = db.cursor()
try: try:
tag_id = request.form["id"] tag_id = request.form["id"]
print(tag_id)
except: except:
tag_id = request.args.get("id") tag_id = request.args.get("id")
c.execute(f"SELECT * FROM tags WHERE tagid=?", [tag_id]) c.execute(f"SELECT * FROM tags WHERE tagid=?", [tag_id])
@ -427,4 +428,4 @@ def create_app(test_config=None):
def documentation(): def documentation():
return render_template("documentation.html") return render_template("documentation.html")
return {"app":app,"socketio":socketio} return {"app":app,"socketio":socketio}