summaryrefslogtreecommitdiff
path: root/modules/ships.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/ships.py')
-rw-r--r--modules/ships.py4
1 files changed, 2 insertions, 2 deletions
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