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
6c0fa70e61
commit
fb3646f134
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,
|
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):
|
if len(buy_location):
|
||||||
embed.add_field(
|
embed.add_field(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user