From 00eed9f0cf64779138c3f7ebcbd6ff3811b88b69 Mon Sep 17 00:00:00 2001 From: "Waylon S. Walker" Date: Sun, 21 May 2023 13:18:22 -0500 Subject: [PATCH] item_id is now id --- learn_sql_model/api/hero.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/learn_sql_model/api/hero.py b/learn_sql_model/api/hero.py index 3560421..f61f448 100644 --- a/learn_sql_model/api/hero.py +++ b/learn_sql_model/api/hero.py @@ -16,7 +16,7 @@ async def read_items(token: Annotated[str, Depends(oauth2_scheme)]): @hero_router.get("/hero/{id}") def get_hero(id: int) -> Hero: "get one hero" - return Hero.get(item_id=id) + return Hero().get(id=id) @hero_router.post("/hero/")