From 4e551bec0d1dd672c402dfd64aed7f66a68a5991 Mon Sep 17 00:00:00 2001 From: HibiKier <775757368@qq.com> Date: Sat, 3 Sep 2022 16:16:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AF=8D=E6=9D=A1=E5=90=AB?= =?UTF-8?q?=E6=9C=89CQ=E5=9B=9E=E7=AD=94=E7=9A=84=E6=A8=A1=E7=B3=8A?= =?UTF-8?q?=E5=8C=B9=E9=85=8D=E6=97=A0=E6=B3=95=E8=A2=AB=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 +++++ plugins/word_bank/_model.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2bd01bcb..2186ef24 100644 --- a/README.md +++ b/README.md @@ -279,6 +279,11 @@ PS: **ARM平台** 请使用全量版 同时 **如果你的机器 RAM < 1G 可能 ## 更新 +### 2022/9/3 + +* 原神玩家查询增加须弥地区 [@pull/1053](https://github.com/HibiKier/zhenxun_bot/pull/1053) +* 修复词条含有CQ回答的模糊匹配无法被解析 + ### 2022/8/27 * 修复签到积分双倍后,日志记录获得积分变4倍问题 [@pull/1044](https://github.com/HibiKier/zhenxun_bot/pull/1044) diff --git a/plugins/word_bank/_model.py b/plugins/word_bank/_model.py index b53f0879..2e6557be 100644 --- a/plugins/word_bank/_model.py +++ b/plugins/word_bank/_model.py @@ -293,7 +293,7 @@ class WordBank(db.Model): answer_list = await db.all(db.text(query), problem=problem) answer = random.choice(answer_list) return ( - await cls._format2answer(problem, answer[7], answer[1], answer[2]) + await cls._format2answer(answer[6], answer[7], answer[1], answer[2]) if answer.placeholder else answer.answer )