From 4b1b3b10967ca6c36e16314f5287c262b6be711e Mon Sep 17 00:00:00 2001 From: Azlux Date: Mon, 23 Mar 2020 13:54:52 +0100 Subject: [PATCH 1/2] adding favicon --- static/image/favicon.ico | Bin 0 -> 1150 bytes templates/index.html | 1 + 2 files changed, 1 insertion(+) create mode 100644 static/image/favicon.ico diff --git a/static/image/favicon.ico b/static/image/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..5163003e2e20e562bfa48bfbf0fc71ee39501649 GIT binary patch literal 1150 zcmZQzU}Ruq5D);-3Je)63=Con3=A3!3=9Gc3=9ek5OD?&U;z71YFOQ4q^tGcP*3Z> zV*cm<8o96jD`vk(m{IuQzk0z3u$+OW=6_>7Efh0A`i%9o|C<=22o2l6U<-gp7uP9ii_v?Sz3E%%q z_kH?rsHOcMq!!t35L;l@um486I$$%UX8!muGxH}HOHTjxUvSR%|1vXwfaUacH2%xZ z_y%T!^ue&i(y#x;7JOR(3I~u_?tvHokugZjL{A5-2Ba3mN5&w%0&Bm6%{A21{BNSC z^&b?c#=2VnP4qSYgTz4UMK}Bfn*m~@V}ZSY!1~d}k@;K)Aa)>&4J7;je+C8+{#Vby p@W-Bk;Q>1X!vSUnh6Y9mKEMd!pAcqXIHJtJ0HWW2hv)(60|1+86y*Q_ literal 0 HcmV?d00001 diff --git a/templates/index.html b/templates/index.html index de3a2a2..9f31a71 100644 --- a/templates/index.html +++ b/templates/index.html @@ -5,6 +5,7 @@ botamusique web interface + From f93ac890a210250128dbc16bc7cdbb812ffb0ecc Mon Sep 17 00:00:00 2001 From: Terry Geng Date: Mon, 23 Mar 2020 21:13:55 +0800 Subject: [PATCH 2/2] 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();