From f93ac890a210250128dbc16bc7cdbb812ffb0ecc Mon Sep 17 00:00:00 2001 From: Terry Geng Date: Mon, 23 Mar 2020 21:13:55 +0800 Subject: [PATCH] fix: 404 -> 204 --- interface.py | 2 +- templates/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/interface.py b/interface.py index 419fede..6368da4 100644 --- a/interface.py +++ b/interface.py @@ -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)) diff --git a/templates/index.html b/templates/index.html index 9f31a71..3a4d4db 100644 --- a/templates/index.html +++ b/templates/index.html @@ -743,7 +743,7 @@ data: data, statusCode: { 200: processResults, - 404: function(){ + 204: function(){ lib_loading.hide(); lib_empty.show(); page_ul.empty();