From 5f67692c2424ce54c8dd754ef87d8d753759700e Mon Sep 17 00:00:00 2001 From: Botond Hende Date: Mon, 2 Sep 2024 00:30:16 +0200 Subject: renamed/refactored code --- apirouters/customize_ship.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apirouters/customize_ship.py') 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() -- cgit v1.2.3-70-g09d2