fix for sanic 22.6

This commit is contained in:
Paul Bienkowski 2022-07-28 19:01:49 +02:00
parent 8684aeb30d
commit a7a3b430ea

View file

@ -26,7 +26,11 @@ from sqlalchemy.util import asyncio
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
app = Sanic("OpenBikeSensor Portal API", load_env="OBS_", log_config={}) app = Sanic(
"openbikesensor-api",
env_prefix="OBS_",
log_config={},
)
if isfile("./config.py"): if isfile("./config.py"):
app.update_config("./config.py") app.update_config("./config.py")