mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-02 18:20:01 +08:00
fix bug
This commit is contained in:
+1
-1
@@ -117,8 +117,8 @@ class BanUser(Model):
|
||||
参数:
|
||||
:param user_qq: qq号
|
||||
"""
|
||||
logger.debug("解除封禁", target=user_qq)
|
||||
if user := await cls.filter(user_qq=user_qq).first():
|
||||
logger.debug("解除封禁", target=user_qq)
|
||||
await user.delete()
|
||||
return True
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user