fix: 404 -> 204

This commit is contained in:
Terry Geng 2020-03-23 21:13:55 +08:00
parent 4b1b3b1096
commit f93ac890a2
2 changed files with 2 additions and 2 deletions

View File

@ -414,7 +414,7 @@ def library():
pass
if not total_count:
abort(404)
abort(204)
if request.form['action'] == 'add':
items = dicts_to_items(var.bot, var.music_db.query_music(condition))

View File

@ -743,7 +743,7 @@
data: data,
statusCode: {
200: processResults,
404: function(){
204: function(){
lib_loading.hide();
lib_empty.show();
page_ul.empty();