Fixing code if a ship is buyable at multiple locations, it was returning all locations you could rent at instead
This commit is contained in:
parent
f733906a23
commit
2812c7bebb
0
app/bot.py
Normal file → Executable file
0
app/bot.py
Normal file → Executable file
@ -105,7 +105,11 @@ async def get_ship(ship_name):
|
||||
inline=True,
|
||||
)
|
||||
|
||||
buy_location = soup.find_all("td", {"class": "Location smwtype_wpg"})
|
||||
buy_location = (
|
||||
soup.find("span", {"id": "Universe_availability"})
|
||||
.findNext("tbody")
|
||||
.find_all("td", {"class", "Location smwtype_wpg"})
|
||||
)
|
||||
|
||||
if len(buy_location):
|
||||
embed.add_field(
|
||||
|
Loading…
x
Reference in New Issue
Block a user