remove config echo
This commit is contained in:
parent
15f7c998c7
commit
b0872553bd
1 changed files with 0 additions and 2 deletions
|
|
@ -7,7 +7,6 @@ from sqlalchemy import create_engine
|
||||||
from sqlmodel import SQLModel, Session
|
from sqlmodel import SQLModel, Session
|
||||||
|
|
||||||
from learn_sql_model.standard_config import load
|
from learn_sql_model.standard_config import load
|
||||||
from rich.console import Console
|
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from sqlalchemy import Engine
|
from sqlalchemy import Engine
|
||||||
|
|
@ -92,5 +91,4 @@ def get_db(config: Config = None, reset_db_state=Depends(reset_db_state)):
|
||||||
def get_config(overrides: dict = {}) -> Config:
|
def get_config(overrides: dict = {}) -> Config:
|
||||||
raw_config = load("learn_sql_model")
|
raw_config = load("learn_sql_model")
|
||||||
config = Config(**raw_config, **overrides)
|
config = Config(**raw_config, **overrides)
|
||||||
Console().print('starting learn-sql-model api with config:', config)
|
|
||||||
return config
|
return config
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue