Fix eldorado prices are per 1K robux now
All checks were successful
Push image to registry / build-image (push) Successful in 3m53s
All checks were successful
Push image to registry / build-image (push) Successful in 3m53s
This commit is contained in:
@@ -94,6 +94,7 @@ class EldoradoRobuxPriceSentryJob extends BrowserJob implements ShouldBeUniqueUn
|
||||
$lowestPriceElement = $browser->driver->findElement(WebDriverBy::xpath('(//eld-offer-price)[2]/strong'));
|
||||
$lowestPriceText = $lowestPriceElement->getText(); // Ex: " 0,00478 € "
|
||||
$lowestPrice = (float)str_replace(["€", ","], ["", "."], trim($lowestPriceText));
|
||||
$lowestPrice = $lowestPrice / 1000; // Price per Robux
|
||||
|
||||
$threshold = floatval(str_replace(",", ".", $this->jobInfos->get("eldorado_robux_price_threshold")));
|
||||
dump($threshold);
|
||||
|
||||
Reference in New Issue
Block a user