Dont modify the image url, some ships dont have larger variants on the wiki
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Luke Robles 2023-05-25 10:18:24 -07:00
parent 8f995fd5ea
commit 84aebe340d

View File

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