From 347418ee3fd7e5528b2e8b740dd1dee79dc9b046 Mon Sep 17 00:00:00 2001 From: "Waylon S. Walker" Date: Tue, 13 Jun 2023 15:07:07 -0500 Subject: [PATCH] wip --- learn_sql_model/api/hero.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/learn_sql_model/api/hero.py b/learn_sql_model/api/hero.py index bc17008..79db3d6 100644 --- a/learn_sql_model/api/hero.py +++ b/learn_sql_model/api/hero.py @@ -3,7 +3,7 @@ from sqlmodel import SQLModel, Session from learn_sql_model.api.websocket_connection_manager import manager from learn_sql_model.config import get_config, get_session -from learn_sql_model.models.hero import Hero, HeroCreate, HeroRead, HeroUpdate +from learn_sql_model.models.hero import Hero, HeroCreate, HeroRead, HeroUpdate, Heros hero_router = APIRouter() @@ -80,6 +80,6 @@ async def delete_hero( async def get_heros( *, session: Session = Depends(get_session), -) -> list[Hero]: +) -> Heros: "get all heros" return Heros.list(session=session)