technicall you can make groups (it does nothing)

This commit is contained in:
cube
2026-03-19 01:08:31 +00:00
parent 5058c326c5
commit 13b46dd3b3
3 changed files with 41 additions and 1 deletions

View File

@@ -232,4 +232,19 @@ def delete_ifiles():
if not in_database:
os.remove(os.path.join(current_app.config["ICON_UPLOAD_FOLDER"], icon))
return redirect(url_for("manage.assets"))
return redirect(url_for("manage.assets"))
@bp.route("/groups", methods=('GET', 'POST'))
@login_required
def groups():
db = get_db()
if request.method == "POST":
name = request.form['name']
desc = request.form['desc']
db.execute("INSERT INTO groups (group_name, group_description) VALUES (?, ?)",(name, desc))
db.commit()
groups = db.execute("SELECT * FROM groups").fetchall()
return render_template("manage/groups.html", groups=groups)