Fix issue of nowhere to buy a material (mainly for mineables)
This commit is contained in:
parent
a8d77ab227
commit
a275e22468
@ -238,15 +238,16 @@ async def calculate_trade_profies(commodity, scu=None):
|
|||||||
costs[station] = trades["buy"][commodity] * int(scu)
|
costs[station] = trades["buy"][commodity] * int(scu)
|
||||||
break
|
break
|
||||||
|
|
||||||
embed.add_field(
|
if len(costs):
|
||||||
name="**Best place to buy %s of %s**" % (scu_string, commodity),
|
embed.add_field(
|
||||||
value="%s: $%s"
|
name="**Best place to buy %s of %s**" % (scu_string, commodity),
|
||||||
% (
|
value="%s: $%s"
|
||||||
min(costs, key=costs.get),
|
% (
|
||||||
"{:20,.2f}".format(costs[min(costs, key=costs.get)]).strip(),
|
min(costs, key=costs.get),
|
||||||
),
|
"{:20,.2f}".format(costs[min(costs, key=costs.get)]).strip(),
|
||||||
inline=True,
|
),
|
||||||
)
|
inline=True,
|
||||||
|
)
|
||||||
|
|
||||||
# Same logic, but finding the place buying the commodity for the most
|
# Same logic, but finding the place buying the commodity for the most
|
||||||
profits = {}
|
profits = {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user