fix for sanic 22.6
This commit is contained in:
parent
8684aeb30d
commit
a7a3b430ea
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue