From ca27fd9fc52b5c95485293ae022e3f80a75b0a2b Mon Sep 17 00:00:00 2001 From: hjdhnx Date: Fri, 16 Sep 2022 19:43:29 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8D=87=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/service.py b/controllers/service.py index 1594cac..24cc002 100644 --- a/controllers/service.py +++ b/controllers/service.py @@ -52,7 +52,7 @@ class storage_service(object): @classmethod def getItem(self, key, value=''): res = Storage.getItem(key,value) - if str(res) == '0' or str(res) == 'false' or str(res) == 'False': + if not str(res) or str(res) == '0' or str(res) == 'false' or str(res) == 'False': return 0 return res -- GitLab