From 1106fd5800edd3a849c7e7c3e76a91ffbe048f3f Mon Sep 17 00:00:00 2001 From: KimigaiiWuyi <444835641@qq.com> Date: Wed, 7 May 2025 00:01:51 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E4=B8=80?= =?UTF-8?q?=E4=BA=9BBUG=20(#118)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gsuid_core/buildin_plugins/core_command/core_restart/restart.py | 2 +- gsuid_core/utils/database/base_models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gsuid_core/buildin_plugins/core_command/core_restart/restart.py b/gsuid_core/buildin_plugins/core_command/core_restart/restart.py index 88bd43e..b6aa8de 100644 --- a/gsuid_core/buildin_plugins/core_command/core_restart/restart.py +++ b/gsuid_core/buildin_plugins/core_command/core_restart/restart.py @@ -31,7 +31,7 @@ def get_restart_command(): tool = check_start_tool() if tool != 'python': return f'{tool} run python' - return 'python -m' + return 'python' async def get_restart_sh() -> str: diff --git a/gsuid_core/utils/database/base_models.py b/gsuid_core/utils/database/base_models.py index 4dabfa4..807a36b 100644 --- a/gsuid_core/utils/database/base_models.py +++ b/gsuid_core/utils/database/base_models.py @@ -50,9 +50,9 @@ db_config = { 'echo': db_echo, } +DB_PATH = get_res_path() / 'GsData.db' if _db_type == 'sqlite': base_url = 'sqlite+aiosqlite:///' - DB_PATH = get_res_path() / 'GsData.db' db_url = str(DB_PATH) del db_config['pool_size'] elif _db_type == 'mysql':