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