🐛 修复一些BUG (#118)

This commit is contained in:
KimigaiiWuyi 2025-05-07 00:01:51 +08:00
parent 02e8640bd4
commit 1106fd5800
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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':