Fix speed and cargo capacity for /ship command
All checks were successful
Build and push / changes (push) Successful in 4s
Build and push / Lint-Python (push) Successful in 2s
Build and push / Build-and-Push-Docker (push) Successful in 1m10s
Build and push / post-status-to-discord (push) Successful in 2s
Build and push / sync-argocd-app (push) Successful in 2s
All checks were successful
Build and push / changes (push) Successful in 4s
Build and push / Lint-Python (push) Successful in 2s
Build and push / Build-and-Push-Docker (push) Successful in 1m10s
Build and push / post-status-to-discord (push) Successful in 2s
Build and push / sync-argocd-app (push) Successful in 2s
This commit is contained in:
parent
3455685acc
commit
379550f5fd
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user