🚧 Update the data types of the user_qq and group_id fields to str

This commit is contained in:
yajiwa
2023-04-14 15:47:53 +08:00
parent 0eeb55a0ca
commit c577aa1318
21 changed files with 39 additions and 39 deletions
+2 -2
View File
@@ -162,8 +162,8 @@ async def _(bot: Bot, event: MessageEvent, cmd: Tuple[str, ...] = Command(), arg
day_index = data["day_index"]
data = data[arg][key]
if _type == "group":
group = await GroupInfo.filter(group_id=event.group_id).first()
name = name.group_name if group else str(event.group_id)
group = await GroupInfo.filter(group_id=str(event.group_id)).first()
name = group if group else str(event.group_id)
else:
name = event.sender.card or event.sender.nickname
img = await generate_statistics_img(data, arg, name, plugin, day_index)