mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-10 22:30:02 +08:00
🐛 修复TaskInfo状态判断
This commit is contained in:
@@ -35,7 +35,7 @@ class TaskInfo(Model):
|
||||
bool: 是否被禁用
|
||||
"""
|
||||
if task := await cls.get_or_none(module=module):
|
||||
if task.status:
|
||||
if not task.status:
|
||||
return True
|
||||
if group_id:
|
||||
return await GroupConsole.is_block_task(group_id, module)
|
||||
|
||||
Reference in New Issue
Block a user