Fix a typo in the /trade and /price embeds
This commit is contained in:
parent
a66cc6c74f
commit
c4f6c36676
@ -542,7 +542,7 @@ async def calculate_trade_profits(commodity, scu=None):
|
|||||||
break
|
break
|
||||||
|
|
||||||
embed.add_field(
|
embed.add_field(
|
||||||
name="Best palce to sell %s of %s" % (scu_string, commodity),
|
name="Best place to sell %s of %s" % (scu_string, commodity),
|
||||||
value="%s: $%s"
|
value="%s: $%s"
|
||||||
% (
|
% (
|
||||||
max(profits, key=profits.get),
|
max(profits, key=profits.get),
|
||||||
@ -590,7 +590,7 @@ async def get_price(commodity, scu):
|
|||||||
break
|
break
|
||||||
|
|
||||||
embed.add_field(
|
embed.add_field(
|
||||||
name="Best palce to sell %s of %s" % (scu_string, commodity),
|
name="Best place to sell %s of %s" % (scu_string, commodity),
|
||||||
value="%s: $%s"
|
value="%s: $%s"
|
||||||
% (
|
% (
|
||||||
max(profits, key=profits.get),
|
max(profits, key=profits.get),
|
||||||
|
@ -37,6 +37,11 @@ async def get_msreg(track):
|
|||||||
json.dumps(xmltodict.parse(awaited_xml_blob)["response"]["events"])
|
json.dumps(xmltodict.parse(awaited_xml_blob)["response"]["events"])
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# prints for debug
|
||||||
|
import pprint
|
||||||
|
|
||||||
|
pp = pprint.PrettyPrinter(indent=4)
|
||||||
|
|
||||||
# If an organizer only has one upcoming event on MSReg, it is a dict, otherwise its a list of dicts
|
# If an organizer only has one upcoming event on MSReg, it is a dict, otherwise its a list of dicts
|
||||||
# My code assumes list of dicts, so wrap the event dict in a list of 1 item
|
# My code assumes list of dicts, so wrap the event dict in a list of 1 item
|
||||||
if json_blob and isinstance(json_blob["event"], dict):
|
if json_blob and isinstance(json_blob["event"], dict):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user