Fix eldorado prices are per 1K robux now
All checks were successful
Push image to registry / build-image (push) Successful in 3m53s

This commit is contained in:
2025-11-01 14:57:49 +01:00
parent 31ac892cbb
commit a426d5c6c2

View File

@@ -94,6 +94,7 @@ class EldoradoRobuxPriceSentryJob extends BrowserJob implements ShouldBeUniqueUn
$lowestPriceElement = $browser->driver->findElement(WebDriverBy::xpath('(//eld-offer-price)[2]/strong')); $lowestPriceElement = $browser->driver->findElement(WebDriverBy::xpath('(//eld-offer-price)[2]/strong'));
$lowestPriceText = $lowestPriceElement->getText(); // Ex: " 0,00478 € " $lowestPriceText = $lowestPriceElement->getText(); // Ex: " 0,00478 € "
$lowestPrice = (float)str_replace(["", ","], ["", "."], trim($lowestPriceText)); $lowestPrice = (float)str_replace(["", ","], ["", "."], trim($lowestPriceText));
$lowestPrice = $lowestPrice / 1000; // Price per Robux
$threshold = floatval(str_replace(",", ".", $this->jobInfos->get("eldorado_robux_price_threshold"))); $threshold = floatval(str_replace(",", ".", $this->jobInfos->get("eldorado_robux_price_threshold")));
dump($threshold); dump($threshold);