Fix how i find the locations taht a ship is sold at
This commit is contained in:
parent
b09a691b05
commit
cb99e1d1a1
@ -272,9 +272,12 @@ async def get_ship(ship_name):
|
|||||||
try:
|
try:
|
||||||
price_table = price_soup.find("div", class_="pricetab").find_next("table")
|
price_table = price_soup.find("div", class_="pricetab").find_next("table")
|
||||||
|
|
||||||
second_row = price_table.find_all("tr")[1]
|
buy_location = ", ".join(
|
||||||
buy_location = (
|
[
|
||||||
second_row.find_all("td")[0].get_text(strip=True).split("-")[-1]
|
x.find("td").get_text(strip=True).split("-")[-1].strip()
|
||||||
|
for x in price_table.find_all("tr")
|
||||||
|
if x.find("td")
|
||||||
|
]
|
||||||
)
|
)
|
||||||
embed.add_field(
|
embed.add_field(
|
||||||
name="**Buyable At**",
|
name="**Buyable At**",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user