Fix eldorado prices
Some checks failed
Test, build and push image to registry / phpunit-tests (push) Failing after 1m33s
Test, build and push image to registry / build-image (push) Has been skipped

This commit is contained in:
2025-11-06 23:29:49 +01:00
parent 45a40ae999
commit 7d26440d0c
2 changed files with 2 additions and 4 deletions

View File

@@ -94,11 +94,10 @@ class EldoradoRobuxPriceSentryJob extends BrowserJob implements ShouldBeUniqueUn
$lowestPriceElement = $browser->driver->findElement(WebDriverBy::xpath('(//eld-offer-price)[2]/strong'));
$lowestPriceText = $lowestPriceElement->getText(); // Ex: " 0,00478 € "
$lowestPrice = $this->textToFloat($lowestPriceText);
$lowestPrice = $lowestPrice / 1000; // Price per Robux
//$lowestPrice = $lowestPrice / 1000; // Price per Robux
// TODO : Look at the entire text to try to understand if it is per 1k or per single Robux
$threshold = $this->textToFloat($this->jobInfos->get("eldorado_robux_price_threshold"));
dump($threshold);
Log::info("EldoradoRobuxPriceSentryJob: lowest price = $lowestPrice €, threshold = $threshold");
$this->jobRun->addArtifact(new JobArtifact([