release edit page! + a lot of other stuff oml

Signed-off-by: ari melody <ari@arimelody.me>
This commit is contained in:
ari melody 2024-08-05 01:23:17 +01:00
parent f276ef1ff2
commit 10f19d46db
23 changed files with 981 additions and 347 deletions

View file

@ -122,10 +122,7 @@ func UpdateTrack() http.Handler {
data.ID = trackID
if data.Title == "" {
http.Error(w, "Track title cannot be blank\n", http.StatusBadRequest)
return
}
if data.Title == "" { data.Title = track.Title }
err = controller.UpdateTrackDB(global.DB, &data)
if err != nil {