mirror of
https://github.com/Genshin-bots/gsuid_core.git
synced 2025-06-03 22:19: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()
|
tool = check_start_tool()
|
||||||
if tool != 'python':
|
if tool != 'python':
|
||||||
return f'{tool} run python'
|
return f'{tool} run python'
|
||||||
return 'python -m'
|
return 'python'
|
||||||
|
|
||||||
|
|
||||||
async def get_restart_sh() -> str:
|
async def get_restart_sh() -> str:
|
||||||
|
@ -50,9 +50,9 @@ db_config = {
|
|||||||
'echo': db_echo,
|
'echo': db_echo,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DB_PATH = get_res_path() / 'GsData.db'
|
||||||
if _db_type == 'sqlite':
|
if _db_type == 'sqlite':
|
||||||
base_url = 'sqlite+aiosqlite:///'
|
base_url = 'sqlite+aiosqlite:///'
|
||||||
DB_PATH = get_res_path() / 'GsData.db'
|
|
||||||
db_url = str(DB_PATH)
|
db_url = str(DB_PATH)
|
||||||
del db_config['pool_size']
|
del db_config['pool_size']
|
||||||
elif _db_type == 'mysql':
|
elif _db_type == 'mysql':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user