fix tradedashboard python
This commit is contained in:
parent
c8baff8a19
commit
0d949ce48c
1 changed files with 1 additions and 1 deletions
|
|
@ -241,7 +241,7 @@ async def index():
|
||||||
@app.on_event("startup")
|
@app.on_event("startup")
|
||||||
async def startup():
|
async def startup():
|
||||||
import alembic.config
|
import alembic.config
|
||||||
cfg = alembic.config.AlembicConfig(
|
cfg = alembic.config.Config(
|
||||||
str(Path(__file__).parent.parent / "alembic.ini")
|
str(Path(__file__).parent.parent / "alembic.ini")
|
||||||
)
|
)
|
||||||
alembic.config.main.main(command="upgrade", args=["head"], config=cfg)
|
alembic.config.main.main(command="upgrade", args=["head"], config=cfg)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue