mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
RUFF检查
This commit is contained in:
parent
53b8a5397b
commit
6c9b466461
@ -251,7 +251,7 @@ class PluginManage:
|
|||||||
)
|
)
|
||||||
group.status = False
|
group.status = False
|
||||||
await group.save(update_fields=["status"])
|
await group.save(update_fields=["status"])
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
async def wake(cls, group_id: str):
|
async def wake(cls, group_id: str):
|
||||||
"""醒来
|
"""醒来
|
||||||
|
|||||||
@ -29,7 +29,7 @@ class BotConsole(Model):
|
|||||||
class Meta: # pyright: ignore [reportIncompatibleVariableOverride]
|
class Meta: # pyright: ignore [reportIncompatibleVariableOverride]
|
||||||
table = "bot_console"
|
table = "bot_console"
|
||||||
table_description = "Bot数据表"
|
table_description = "Bot数据表"
|
||||||
|
|
||||||
cache_type = CacheType.BOT
|
cache_type = CacheType.BOT
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
from tortoise import fields
|
from tortoise import fields
|
||||||
|
|
||||||
from zhenxun.services.db_context import Model
|
from zhenxun.services.db_context import Model
|
||||||
from zhenxun.utils.enum import CacheType
|
from zhenxun.utils.enum import CacheType
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user