From 593573ddfb3275747f97d3750e4768dc5eb67b1e Mon Sep 17 00:00:00 2001 From: HibiKier <775757368@qq.com> Date: Tue, 14 Jun 2022 19:48:32 +0800 Subject: [PATCH] fix pix --- README.md | 7 +++++++ plugins/pix_gallery/pix.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 49f5c819..f6a4fd39 100644 --- a/README.md +++ b/README.md @@ -243,6 +243,13 @@ __Docker 最新版本由 [Sakuracio](https://github.com/Sakuracio) 提供__ ## 更新 +### 2022/6/14 + +* AsyncHttpx提供可关闭 ssl 验证参数 [@pull/812](https://github.com/HibiKier/zhenxun_bot/pull/812) +* fix: 自动更新群组 [@pull/810](https://github.com/HibiKier/zhenxun_bot/pull/810) +* fix: 修复添加词条时对answer中图片的处理 [@pull/806](https://github.com/HibiKier/zhenxun_bot/pull/806) +* 修复pix中指定num无法生效 + ### 2022/6/13 * Windows 重启适配 [@pull/804](https://github.com/HibiKier/zhenxun_bot/pull/804) diff --git a/plugins/pix_gallery/pix.py b/plugins/pix_gallery/pix.py index 276bf612..799d6366 100755 --- a/plugins/pix_gallery/pix.py +++ b/plugins/pix_gallery/pix.py @@ -93,7 +93,7 @@ async def _(bot: Bot, event: MessageEvent, arg: Message = CommandArg()): nsfw_tag == 2 and not Config.get_config("pix", "ALLOW_GROUP_R18") ): await pix.finish("你不能看这些噢,这些都是是留给管理员看的...") - if n := len(x) == 1: + if (n := len(x)) == 1: if is_number(x[0]) and int(x[0]) < 100: num = int(x[0]) keyword = ""