From c5d35ac3a2997b7a939a79e4c22999708fb0ffce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wuyi=E6=97=A0=E7=96=91?= <444835641@qq.com> Date: Thu, 27 Apr 2023 22:14:59 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=9A=84=E6=95=B0=E5=AD=97=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gsuid_core/utils/database/dal.py | 2 +- poetry.lock | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gsuid_core/utils/database/dal.py b/gsuid_core/utils/database/dal.py index 70d863a..1370eea 100644 --- a/gsuid_core/utils/database/dal.py +++ b/gsuid_core/utils/database/dal.py @@ -74,7 +74,7 @@ class SQLA: new_sr_uid = new_sr_uid.strip() if len(new_uid) != 9 and len(new_sr_uid) != 9: return -1 - elif not new_uid.isdigit() and new_sr_uid.isdigit(): + elif not new_uid.isdigit() and not new_sr_uid.isdigit(): return -3 if new_uid and await self.bind_exists(user_id): uid_list = await self.get_bind_uid_list(user_id) diff --git a/poetry.lock b/poetry.lock index 65198a0..f3fa4c3 100644 --- a/poetry.lock +++ b/poetry.lock @@ -2230,14 +2230,14 @@ reference = "mirrors" [[package]] name = "tomlkit" -version = "0.11.7" +version = "0.11.8" description = "Style preserving TOML library" category = "dev" optional = false python-versions = ">=3.7" files = [ - {file = "tomlkit-0.11.7-py3-none-any.whl", hash = "sha256:5325463a7da2ef0c6bbfefb62a3dc883aebe679984709aee32a317907d0a8d3c"}, - {file = "tomlkit-0.11.7.tar.gz", hash = "sha256:f392ef70ad87a672f02519f99967d28a4d3047133e2d1df936511465fbb3791d"}, + {file = "tomlkit-0.11.8-py3-none-any.whl", hash = "sha256:8c726c4c202bdb148667835f68d68780b9a003a9ec34167b6c673b38eff2a171"}, + {file = "tomlkit-0.11.8.tar.gz", hash = "sha256:9330fc7faa1db67b541b28e62018c17d20be733177d290a13b24c62d1614e0c3"}, ] [package.source]