Skip to content

Commit

Permalink
refuel now returns result, ships should stop having decimal cargo amo…
Browse files Browse the repository at this point in the history
…unts
  • Loading branch information
Ctri-The-Third committed Dec 3, 2023
1 parent 39382bd commit ba05f9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions straders_sdk/client_mediator.py
Original file line number Diff line number Diff line change
Expand Up @@ -966,6 +966,7 @@ def ship_refuel(self, ship: "Ship"):
ship.update(resp.data)
self.db_client.update(ship)
self.db_client.update(resp.data)
return resp

def ship_sell(
self, ship: "Ship", symbol: str, quantity: int
Expand Down
2 changes: 1 addition & 1 deletion straders_sdk/pg_pieces/select_ship.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def _select_ship_one(ship_symbol: str, db_client: SpaceTradersClient):

def _expand_ship_with_inventory(db_client: SpaceTradersClient, ship: Ship):
sql = """
select sc.ship_Symbol, agent_name, trade_symbol, quantity from ship_cargo sc join ships s
select sc.ship_Symbol, agent_name, trade_symbol, quantity::integer from ship_cargo sc join ships s
on sc.ship_symbol = s.ship_symbol
where sc.ship_symbol = %s
order by 1, 2 """
Expand Down

0 comments on commit ba05f9e

Please sign in to comment.