This commit is contained in:
Waylon Walker 2023-06-28 09:11:49 -05:00
parent d747299c95
commit f0f1ce5018
3 changed files with 19 additions and 22 deletions

View file

@ -83,5 +83,5 @@ async def get_heros(
) -> Heros:
"get all heros"
statement = select(Hero)
heros = session.execute(statement).all()
heros = session.exec(statement).all()
return Heros(__root__=heros)