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 --- modules/ships.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/ships.py') diff --git a/modules/ships.py b/modules/ships.py index 9b0d4bd..4a6d0d6 100644 --- a/modules/ships.py +++ b/modules/ships.py @@ -2,12 +2,12 @@ from typing import Annotated from fastapi import Depends, HTTPException -from ..apirouters import agents +from ..apirouters import auth from ..entities.agent import Agent from ..entities.ship import Ship -async def get_ship(ship_symbol: str, agent: Annotated[Agent, Depends(agents.auth_agent)]) -> Ship: +async def get_ship(ship_symbol: str, agent: Annotated[Agent, Depends(auth.auth_agent)]) -> Ship: for ship in agent.ships.values(): if ship.symbol == ship_symbol: return ship -- cgit v1.2.3-70-g09d2