mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
🚑 修复sqlite连接问题
This commit is contained in:
parent
46a0768a45
commit
f693012927
@ -404,7 +404,7 @@ def get_config(db_url: str) -> dict:
|
|||||||
config["connections"]["default"] = {
|
config["connections"]["default"] = {
|
||||||
"engine": "tortoise.backends.sqlite",
|
"engine": "tortoise.backends.sqlite",
|
||||||
"credentials": {
|
"credentials": {
|
||||||
"file_path": parsed.path[1:] or ":memory:",
|
"file_path": parsed.path or ":memory:",
|
||||||
},
|
},
|
||||||
**SQLITE_CONFIG,
|
**SQLITE_CONFIG,
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user