Abspielknopf

This commit is contained in:
mikka 2026-04-22 20:03:19 +02:00
parent 1d906d4d5f
commit ec5b29dff3
5 changed files with 57 additions and 11 deletions

4
app.py
View file

@ -137,7 +137,7 @@ def suche_finden():
json.dump(songs,f,indent=2,ensure_ascii=False)
return redirect("/suche?liste="+liste,303)
@app.route("/rm")
@app.route("/remove")
def admin():
liste = request.args.get("liste")
if liste is None:
@ -151,7 +151,7 @@ def admin():
gesamtLaenge += song["laenge"]
return render_template('index.html', karten=songs,gesamtLaenge=gesamtLaenge,liste=liste,admin=True)
@app.route("/rm",methods=["POST"])
@app.route("/remove",methods=["POST"])
def loeschen():
liste = request.args.get("liste")
song = int(request.form.get("index"))