From 4d8b499d96ec1d61c802f21f3f65eb854435cba2 Mon Sep 17 00:00:00 2001 From: Chris Fulljames Date: Sat, 11 Jan 2025 12:11:51 -0500 Subject: [PATCH] Add initial song player implementation --- main.py | 2 +- templates/base.html | 22 ++++++++++++++++++++++ templates/song-list.html | 7 +++++-- todo.txt | 8 ++++---- 4 files changed, 32 insertions(+), 7 deletions(-) diff --git a/main.py b/main.py index 6d78647..6643997 100644 --- a/main.py +++ b/main.py @@ -257,7 +257,7 @@ def update_song(): file = request.files["song"] title = request.form["title"] description = request.form["description"] - tags = [t.strip() for t in request.form["tags"].split(",")] + tags = [t.strip().lower() for t in request.form["tags"].split(",")] collaborators = [c.strip() for c in request.form["collabs"].split(",")] # Make sure song exists and the logged-in user owns it diff --git a/templates/base.html b/templates/base.html index b3e1443..753a8e8 100644 --- a/templates/base.html +++ b/templates/base.html @@ -2,8 +2,11 @@ {% block title %} Base {% endblock %} + + + + {% with messages = get_flashed_messages(with_categories=True) %} {% if messages %}