diff --git a/app.py b/app.py index ee64489..76a0dcc 100644 --- a/app.py +++ b/app.py @@ -169,7 +169,7 @@ def route_admin_songs_id_post(id): else: output['courses'][course] = None - output['category_id'] = int(request.form.get('category_id')) + output['category_id'] = int(request.form.get('category_id')) or None output['type'] = request.form.get('type') output['offset'] = float(request.form.get('offset')) or None output['skin_id'] = int(request.form.get('skin_id')) or None diff --git a/templates/admin_song_detail.html b/templates/admin_song_detail.html index a8e2d54..9389f2d 100644 --- a/templates/admin_song_detail.html +++ b/templates/admin_song_detail.html @@ -65,6 +65,7 @@