Fix pledge pricepgp
All checks were successful
Build and push / changes (push) Successful in 3s
Build and push / Lint-Python (push) Successful in 2s
Build and push / Build-and-Push-Docker (push) Successful in 46s
Build and push / sync-argocd-app (push) Successful in 3s
Build and push / post-status-to-discord (push) Successful in 2s

This commit is contained in:
Luke R 2025-04-17 13:44:07 -07:00
parent 379550f5fd
commit 35a9630132

View File

@ -261,9 +261,7 @@ async def get_ship(ship_name):
)
try:
pledge_price = (
soup.find(
"span", {"class": "ext-floatingui-reference"}, string="Standalone"
)
soup.find("div", {"class": "infobox__label"}, string="Standalone")
.findNext("div", {"class": "infobox__data"})
.text
)
@ -344,7 +342,7 @@ async def get_ship(ship_name):
try:
quantum_fuel = (
soup.find("div", {"class": "infobox__label"}, string="Quantum capacity")
.findNext("span", {"class": "smwtext"})
.findNext("div", {"class": "infobox__data"})
.text
)
except Exception: