Dont modify the image url, some ships dont have larger variants on the wiki

This commit is contained in:
Luke Robles 2023-05-25 10:18:24 -07:00
parent f6d50732bc
commit c1985548cf

View File

@ -24,9 +24,8 @@ async def get_ship(ship_name):
)
ship_image = (
(soup.find("a", {"class": "mw-file-description"}))
.img["src"]
.replace("400px", "1920px")
(soup.find("a", {"class": "mw-file-description"})).img["src"]
# .replace("400px", "1920px")
)
ship_name_on_page = (