wip
This commit is contained in:
parent
3490305e39
commit
d747299c95
8 changed files with 64 additions and 49 deletions
|
|
@ -29,6 +29,8 @@ def run(
|
|||
help="show the log messages",
|
||||
),
|
||||
):
|
||||
import uvicorn
|
||||
|
||||
uvicorn.run(**get_config().api_server.dict())
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue