Auto-update: Tue Jul 30 12:49:19 PDT 2024
This commit is contained in:
parent
c4be5cbd7c
commit
4c2e1e5825
1 changed files with 4 additions and 1 deletions
|
@ -252,7 +252,10 @@ class APIConfig(BaseModel):
|
||||||
|
|
||||||
config_data['MODULES'] = cls._create_dynamic_config(config_data.get('MODULES', {}), 'DynamicModulesConfig')
|
config_data['MODULES'] = cls._create_dynamic_config(config_data.get('MODULES', {}), 'DynamicModulesConfig')
|
||||||
config_data['EXTENSIONS'] = cls._create_dynamic_config(config_data.get('EXTENSIONS', {}), 'DynamicExtensionsConfig')
|
config_data['EXTENSIONS'] = cls._create_dynamic_config(config_data.get('EXTENSIONS', {}), 'DynamicExtensionsConfig')
|
||||||
return cls(**config_data)
|
instance = cls(**config_data)
|
||||||
|
instance.db_pool = DatabasePool()
|
||||||
|
return instance
|
||||||
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _create_dynamic_config(cls, data: Dict[str, Any], model_name: str):
|
def _create_dynamic_config(cls, data: Dict[str, Any], model_name: str):
|
||||||
|
|
Loading…
Reference in a new issue