mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
修改BUG
This commit is contained in:
parent
1f68481256
commit
fbf82d999f
@ -320,7 +320,8 @@ async def update_member_info(group_id: int, remind_superuser: bool = False) -> b
|
||||
).first()
|
||||
if user:
|
||||
if user.user_name != nickname:
|
||||
await user.update(user_name=nickname).apply()
|
||||
user.user_name=nickname
|
||||
await user.save(update_fields=['user_name'])
|
||||
logger.info(
|
||||
f"用户{user_info['user_id']} 所属{user_info['group_id']} 更新群昵称成功"
|
||||
)
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
from datetime import datetime
|
||||
from typing import Dict, List, Literal, Optional, Tuple, Union
|
||||
from typing import List, Literal, Optional, Tuple
|
||||
|
||||
from tortoise import fields
|
||||
|
||||
@ -44,14 +44,7 @@ class SignGroupUser(Model):
|
||||
user.add_probability = 0
|
||||
user.specify_probability = 0
|
||||
user.impression = float(user.impression) + impression
|
||||
await user.save(
|
||||
update_fields=[
|
||||
"checkin_count",
|
||||
"add_probability",
|
||||
"specify_probability",
|
||||
"impression",
|
||||
]
|
||||
)
|
||||
await user.save()
|
||||
|
||||
@classmethod
|
||||
async def get_all_impression(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user