From 6c9b46646109d748b12a474c8af6da7fe93b5b93 Mon Sep 17 00:00:00 2001 From: ManyManyTomato <93612024+ATTomatoo@users.noreply.github.com> Date: Sat, 5 Jul 2025 08:37:45 +0000 Subject: [PATCH] =?UTF-8?q?RUFF=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zhenxun/builtin_plugins/admin/plugin_switch/_data_source.py | 2 +- zhenxun/models/bot_console.py | 2 +- zhenxun/models/level_user.py | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/zhenxun/builtin_plugins/admin/plugin_switch/_data_source.py b/zhenxun/builtin_plugins/admin/plugin_switch/_data_source.py index 05213aa3..164320ca 100644 --- a/zhenxun/builtin_plugins/admin/plugin_switch/_data_source.py +++ b/zhenxun/builtin_plugins/admin/plugin_switch/_data_source.py @@ -251,7 +251,7 @@ class PluginManage: ) group.status = False await group.save(update_fields=["status"]) - + @classmethod async def wake(cls, group_id: str): """醒来 diff --git a/zhenxun/models/bot_console.py b/zhenxun/models/bot_console.py index 500593fa..d329c551 100644 --- a/zhenxun/models/bot_console.py +++ b/zhenxun/models/bot_console.py @@ -29,7 +29,7 @@ class BotConsole(Model): class Meta: # pyright: ignore [reportIncompatibleVariableOverride] table = "bot_console" table_description = "Bot数据表" - + cache_type = CacheType.BOT @staticmethod diff --git a/zhenxun/models/level_user.py b/zhenxun/models/level_user.py index 4801c269..fa8c5a55 100644 --- a/zhenxun/models/level_user.py +++ b/zhenxun/models/level_user.py @@ -1,5 +1,4 @@ from tortoise import fields - from zhenxun.services.db_context import Model from zhenxun.utils.enum import CacheType