From f6930129272f6fc2e4ac7859179ef4332350d6d0 Mon Sep 17 00:00:00 2001 From: HibiKier <775757368@qq.com> Date: Mon, 14 Jul 2025 22:52:32 +0800 Subject: [PATCH] =?UTF-8?q?:ambulance:=20=E4=BF=AE=E5=A4=8Dsqlite=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zhenxun/services/db_context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zhenxun/services/db_context.py b/zhenxun/services/db_context.py index ffe98415..95159152 100644 --- a/zhenxun/services/db_context.py +++ b/zhenxun/services/db_context.py @@ -404,7 +404,7 @@ def get_config(db_url: str) -> dict: config["connections"]["default"] = { "engine": "tortoise.backends.sqlite", "credentials": { - "file_path": parsed.path[1:] or ":memory:", + "file_path": parsed.path or ":memory:", }, **SQLITE_CONFIG, }