修复词条含有CQ回答的模糊匹配无法被解析

This commit is contained in:
HibiKier 2022-09-03 16:16:33 +08:00
parent 270a5a5e20
commit 4e551bec0d
2 changed files with 6 additions and 1 deletions

View File

@ -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)

View File

@ -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
)