Skip to content

Commit 2c60c9e

Browse files
committed
typo in fastapi
1 parent b24a376 commit 2c60c9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def cleanup():
197197

198198
api = FastAPI()
199199

200-
@app.on_event("startup")
200+
@api.on_event("startup")
201201
async def startup_event():
202202
with Session(engine) as session:
203203
courses = session.query(Course)

0 commit comments

Comments
 (0)