summaryrefslogtreecommitdiff
path: root/apirouters/customize_ship.py
diff options
context:
space:
mode:
authorBotond Hende <nettingman@gmail.com>2024-09-02 00:30:16 +0200
committerBotond Hende <nettingman@gmail.com>2024-09-02 00:30:16 +0200
commit5f67692c2424ce54c8dd754ef87d8d753759700e (patch)
treeeec7f1b3c626f2bbc4a971214e0d75eab70b6b84 /apirouters/customize_ship.py
parent1638f40eccc4a1321ee1bf19e3756157b6c965e1 (diff)
renamed/refactored code
Diffstat (limited to 'apirouters/customize_ship.py')
-rw-r--r--apirouters/customize_ship.py2
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()