roll back commented code

This commit is contained in:
Jakub Miazek 2022-06-03 19:23:32 +02:00
parent 32c5654dd5
commit b63473f9e6

View File

@ -14,16 +14,16 @@ app.include_router(stuff_router)
app.include_router(nonsense_router)
# async def start_db():
# async with engine.begin() as conn:
# await conn.run_sync(Base.metadata.create_all)
# await engine.dispose()
async def start_db():
async with engine.begin() as conn:
await conn.run_sync(Base.metadata.create_all)
await engine.dispose()
@app.on_event("startup")
async def startup_event():
logger.info("Starting up...")
# await start_db()
await start_db()
@app.on_event("shutdown")