[FEA] Added Conroller for sanity
This commit is contained in:
@@ -1,10 +1,12 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
|
from ...config import config
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
def get_engine_configuration():
|
def get_engine_configuration():
|
||||||
echo = os.getenv("DEV_URIA_BIBLIOGAME_DEBUG", "false")
|
echo = os.getenv("DEV_URIA_BIBLIOGAME_DEBUG", "false")
|
||||||
engine_string = os.getenv("DEV_URIA_BIBLIOGAME_CONFIG_DB", "sqlite://")
|
engine_string = os.getenv("DEV_URIA_BIBLIOGAME_CONFIG_DB", config.get("DataBase").get("query", "sqlite:///"))
|
||||||
logger.debug(f"engine_string, {engine_string}")
|
logger.debug(f"engine_string, {engine_string}")
|
||||||
return (engine_string, echo)
|
return (engine_string, echo)
|
||||||
Reference in New Issue
Block a user