feat: add table showing existing edits

This commit is contained in:
robin committed 2026-11-13 15:46:00 +01:00
1 parent 203bab6cf7
commit d026cc5470
2 files changed
+34 -9

No files matched your search

+7 -2
View File
@@ -325,8 +325,13 @@ def admin_list():
@bp.route("/admin/add/<songId>")
@admin_required
def admin_add_task(songId):
print(songId)
return render_template("admin_add_task.html")
song = False
for s in load_songs_list():
if s["id"] == songId:
song = s
if not song:
return 404
return render_template("admin_add_task.html", song=song)
@bp.route("/api/admin/add", methods=["POST"])
@admin_required