This commit is contained in:
Waylon Walker 2023-06-27 16:19:32 -05:00
parent 3490305e39
commit d747299c95
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4
8 changed files with 64 additions and 49 deletions

View file

@ -29,6 +29,8 @@ def run(
help="show the log messages",
),
):
import uvicorn
uvicorn.run(**get_config().api_server.dict())

View file

@ -54,7 +54,7 @@ def list() -> Union[Hero, List[Hero]]:
def clear() -> Union[Hero, List[Hero]]:
"list many heros"
heros = Heros.list()
for hero in heros.heros:
for hero in heros.__root__:
HeroDelete.delete(id=hero.id)
return hero