From 0a7f1e89e50749e6311a2c0cf5ecacef97ab4289 Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Sat, 13 Jan 2024 10:04:59 -0800 Subject: [PATCH] Fix a typo in the /trade and /price embeds --- app/star_citizen.py | 4 ++-- app/trackdays.py | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/star_citizen.py b/app/star_citizen.py index 3b0ba06c..1c264e18 100755 --- a/app/star_citizen.py +++ b/app/star_citizen.py @@ -542,7 +542,7 @@ async def calculate_trade_profits(commodity, scu=None): break 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" % ( max(profits, key=profits.get), @@ -590,7 +590,7 @@ async def get_price(commodity, scu): break 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" % ( max(profits, key=profits.get), diff --git a/app/trackdays.py b/app/trackdays.py index 27000306..e2d4225d 100755 --- a/app/trackdays.py +++ b/app/trackdays.py @@ -37,6 +37,11 @@ async def get_msreg(track): 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 # 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):