fix db context bug

This commit is contained in:
BryantHe 2023-06-09 03:34:59 +08:00
parent cc87108bb3
commit 86ed13eb7b
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ from chassis.consts import const
engines = {} engines = {}
def init_engine(config_item): def init_engine(config_item=None):
if config_item: if config_item:
databases = config_item[const.DB_CONFIG_ITEM] databases = config_item[const.DB_CONFIG_ITEM]
else: else: