From bdb195e48a18cd310fa1c38985a7e2a112cac446 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=9D=E5=B7=9D?= Date: Fri, 3 Dec 2021 09:44:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E9=82=AE=E7=AE=B1?= =?UTF-8?q?=E5=B7=B2=E6=B3=A8=E5=86=8C=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- user/scripts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/scripts.py b/user/scripts.py index 9a54667..d107f97 100644 --- a/user/scripts.py +++ b/user/scripts.py @@ -115,7 +115,7 @@ def check_registered(email): 邮箱未被注册 False 邮箱已被注册 True """ - return False if find_user_info({"邮箱": email}) is [] else True + return False if find_user_info({"邮箱": email}) == [] else True def check_verified(cid):