From e70a85400f349a5f26795784310d50a789d3437c Mon Sep 17 00:00:00 2001 From: Cinte Date: Mon, 22 Aug 2022 12:56:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E8=AF=8D=E6=9D=A1=E7=9A=84id?= =?UTF-8?q?=E8=8C=83=E5=9B=B4=E5=88=A4=E6=96=AD=E5=B0=91=E4=BA=86=E4=B8=AA?= =?UTF-8?q?=E7=AD=89=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/word_bank/word_handle.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/word_bank/word_handle.py b/plugins/word_bank/word_handle.py index 357e296d..8aa44b54 100644 --- a/plugins/word_bank/word_handle.py +++ b/plugins/word_bank/word_handle.py @@ -247,7 +247,7 @@ async def _(bot: Bot, event: GroupMessageEvent, arg: Message = CommandArg()): not is_number(id_) or int(id_) < 0 or int(id_) - > len(await WordBank.get_group_all_problem(event.group_id)) + >= len(await WordBank.get_group_all_problem(event.group_id)) ): await show_word_matcher.finish("id必须为数字且在范围内") id_ = int(id_) @@ -257,7 +257,7 @@ async def _(bot: Bot, event: GroupMessageEvent, arg: Message = CommandArg()): not is_number(gid) or int(gid) < 0 or int(gid) - > len(await WordBank.get_problem_by_scope(0)) + >= len(await WordBank.get_problem_by_scope(0)) ): await show_word_matcher.finish("gid必须为数字且在范围内") gid = int(gid)