From 379550f5fd8962eaa719d15e83e7a0d059159d80 Mon Sep 17 00:00:00 2001 From: Luke R Date: Thu, 17 Apr 2025 13:37:25 -0700 Subject: [PATCH] Fix speed and cargo capacity for /ship command --- app/star_citizen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/star_citizen.py b/app/star_citizen.py index aecbb827..848459ef 100755 --- a/app/star_citizen.py +++ b/app/star_citizen.py @@ -323,7 +323,7 @@ async def get_ship(ship_name): try: cargo_capacity = ( soup.find("div", {"class": "infobox__label"}, string="Cargo") - .findNext("span", {"class": "smwtext"}) + .findNext("div", {"class": "infobox__data"}) .text ) except Exception: @@ -357,7 +357,7 @@ async def get_ship(ship_name): try: top_speed = ( soup.find("div", {"class": "infobox__label"}, string="Max speed") - .findNext("span", {"class": "smwtext"}) + .findNext("div", {"class": "infobox__data"}) .text ) except Exception: