summaryrefslogtreecommitdiff
path: root/modules/ships.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 /modules/ships.py
parent1638f40eccc4a1321ee1bf19e3756157b6c965e1 (diff)
renamed/refactored code
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