diff --git a/starbot/commands/builtin/ranking/ranking.py b/starbot/commands/builtin/ranking/ranking.py index fcacd1f..0f4f6d9 100644 --- a/starbot/commands/builtin/ranking/ranking.py +++ b/starbot/commands/builtin/ranking/ranking.py @@ -90,7 +90,7 @@ async def ranking(app: Ariadne, if length == 0: await app.send_message(sender, MessageChain(f"{up.uname} 的房间暂无{type_map[_type][2]}数据~"), quote=source) - return + continue if page > page_length: await app.send_message( @@ -98,7 +98,7 @@ async def ranking(app: Ariadne, MessageChain(f"{up.uname} 的房间{type_map[_type][3]}榜页码范围为 1 ~ {page_length}\n请重新输入正确的页码~"), quote=source ) - return + continue data = await type_map[_type][1](up.room_id, start, end) top_count = (await type_map[_type][1](up.room_id, 0, 0))[0][1] diff --git a/starbot/commands/builtin/ranking/ranking_double.py b/starbot/commands/builtin/ranking/ranking_double.py index 98f5cf9..2af2ee2 100644 --- a/starbot/commands/builtin/ranking/ranking_double.py +++ b/starbot/commands/builtin/ranking/ranking_double.py @@ -80,7 +80,7 @@ async def ranking_double(app: Ariadne, if length == 0: await app.send_message(sender, MessageChain(f"{up.uname} 的房间暂无{type_map[_type][2]}数据~"), quote=source) - return + continue if page > page_length: await app.send_message( @@ -88,7 +88,7 @@ async def ranking_double(app: Ariadne, MessageChain(f"{up.uname} 的房间{type_map[_type][3]}榜页码范围为 1 ~ {page_length}\n请重新输入正确的页码~"), quote=source ) - return + continue data = await type_map[_type][1](up.room_id, start, end) top_count = max(