Abspielknopf
This commit is contained in:
parent
1d906d4d5f
commit
ec5b29dff3
5 changed files with 57 additions and 11 deletions
4
app.py
4
app.py
|
|
@ -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"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue