remove unnessary variable assignemtn when calculating costs/profies

This commit is contained in:
Luke Robles 2023-06-14 13:30:53 -07:00
parent 32e41b160b
commit 54d484dc4a

View File

@ -226,8 +226,7 @@ async def calculate_trade_profies(commodity, scu=None):
for systems, stations in response.items():
for station, trades in stations.items():
if "buy" in trades and commodity in trades["buy"]:
cost_to_fill = trades["buy"][commodity] * int(scu)
costs[station] = cost_to_fill
costs[station] = trades["buy"][commodity] * int(scu)
embed.add_field(
name="**Cheapest place to fill %s**" % scu_string,
@ -244,8 +243,7 @@ async def calculate_trade_profies(commodity, scu=None):
for systems, stations in response.items():
for station, trades in stations.items():
if "sell" in trades and commodity in trades["sell"]:
net_profit = trades["sell"][commodity] * int(scu)
profits[station] = net_profit
profits[station] = trades["sell"][commodity] * int(scu)
embed.add_field(
name="Most profitable place to sell %s" % scu_string,