From 203bab6cf7c75fb2877a1dec5bc7e08c0bba4c85 Mon Sep 17 00:00:00 2001 From: Robin Schanbacher Date: Fri, 13 Nov 2026 15:29:27 +0100 Subject: [PATCH] refactor: rename variable task to songId --- routes.py | 6 +++--- templates/admin_tasksList.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/routes.py b/routes.py index cd909be..298d573 100644 --- a/routes.py +++ b/routes.py @@ -322,10 +322,10 @@ def admin_list(): songs = load_songs_list() return render_template("admin_tasksList.html", songs=songs) -@bp.route("/admin/add/") +@bp.route("/admin/add/") @admin_required -def admin_add_task(task): - print(task) +def admin_add_task(songId): + print(songId) return render_template("admin_add_task.html") @bp.route("/api/admin/add", methods=["POST"]) diff --git a/templates/admin_tasksList.html b/templates/admin_tasksList.html index bdf101c..431c4c7 100644 --- a/templates/admin_tasksList.html +++ b/templates/admin_tasksList.html @@ -25,7 +25,7 @@ {% for s in songs %} - + + + {{ s.name }} {{ s.artist }}