From ef6713374eba2d03eb81e58cecdd61b6797e15d0 Mon Sep 17 00:00:00 2001 From: BryantHe Date: Tue, 27 Jun 2023 02:50:23 +0800 Subject: [PATCH] fix db_model bug --- chassis/db_context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chassis/db_context.py b/chassis/db_context.py index 06569bc..ce590f5 100644 --- a/chassis/db_context.py +++ b/chassis/db_context.py @@ -7,7 +7,7 @@ from chassis.consts import const engines = {} -def init_engine(config_item=None): +def init_engine(**config_item): if config_item: databases = config_item[const.DB_CONFIG_ITEM] else: