mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-01 09:39:59 +08:00
🚧 Update the data types of the user_qq and group_id fields to str
This commit is contained in:
@@ -69,7 +69,7 @@ async def _(event: GroupMessageEvent, reg_group: Tuple[Any, ...] = RegexGroup())
|
||||
num_str = "发言次数:\n\n"
|
||||
idx = 1
|
||||
for uid, num in rank_data:
|
||||
if user := await GroupInfoUser.filter(user_qq=str(uid), group_id=str(gid)).first():
|
||||
if user := await GroupInfoUser.filter(user_id=str(uid), group_id=str(gid)).first():
|
||||
user_name = user.user_name
|
||||
else:
|
||||
user_name = uid
|
||||
|
||||
Reference in New Issue
Block a user