mirror of
https://github.com/Genshin-bots/gsuid_core.git
synced 2025-06-01 13:09:47 +08:00
🐛 修复一些BUG (#118)
This commit is contained in:
parent
02e8640bd4
commit
1106fd5800
@ -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:
|
||||
|
@ -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':
|
||||
|
Loading…
x
Reference in New Issue
Block a user