diff options
author | Botond Hende <nettingman@gmail.com> | 2024-09-02 00:30:16 +0200 |
---|---|---|
committer | Botond Hende <nettingman@gmail.com> | 2024-09-02 00:30:16 +0200 |
commit | 5f67692c2424ce54c8dd754ef87d8d753759700e (patch) | |
tree | eec7f1b3c626f2bbc4a971214e0d75eab70b6b84 /apirouters/customize_ship.py | |
parent | 1638f40eccc4a1321ee1bf19e3756157b6c965e1 (diff) |
renamed/refactored code
Diffstat (limited to 'apirouters/customize_ship.py')
-rw-r--r-- | apirouters/customize_ship.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apirouters/customize_ship.py b/apirouters/customize_ship.py index ca3ef83..5f0666e 100644 --- a/apirouters/customize_ship.py +++ b/apirouters/customize_ship.py @@ -13,7 +13,7 @@ class RenameBody(BaseModel): @router.post("/customize_ship/{ship_symbol}/rename") -async def rename(ship_symbol: str, rename_body: RenameBody, ship: Annotated[Ship, Depends(ships.get_ship)]): +async def rename(rename_body: RenameBody, ship: Annotated[Ship, Depends(ships.get_ship)]): ship.rename(rename_body.name) return ship.get_data() |