Skip to content

Commit

Permalink
Update client_mediator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Ctri-The-Third committed Nov 16, 2023
1 parent 04ace31 commit fd214b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions straders_sdk/client_mediator.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,10 @@ def ships_view(self, force=False) -> dict[str, Ship] or SpaceTradersResponse:
return resp

def ships_view_one(self, symbol: str, force=False):
if symbol == "":
return LocalSpaceTradersRespose(
"No ship symbol provided", 0, 0, "client_mediator.ships_view_one()"
)
if not force and symbol in self.ships:
resp = self.ships.get(symbol, None)
if resp:
Expand Down

0 comments on commit fd214b0

Please sign in to comment.