fix for sanic 22.6

This commit is contained in:
Paul Bienkowski 2022-07-28 19:01:49 +02:00
parent 00f018c61c
commit 373fab6e90

View file

@ -26,7 +26,11 @@ from sqlalchemy.util import asyncio
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"):
app.update_config("./config.py")