fix bug total margins for magloo

This commit is contained in:
salam committed 2026-03-04 16:00:15 +01:00
1 parent 90b1467be4
commit 7ff3fbadb6
7 files changed
+67 -66

No files matched your search

@@ -14,7 +14,7 @@ class MaglooStorePoints
foreach ($data as $handicap => $value) {
$odds = $value;
$odds['margin'] = (float) Margin::calculate($odds, 1);
$odds['margin'] = (float) Margin::calculate([$odds['home'], $odds['away']], 1);
$odds['active_spread'] = $value['active_spread'];
$odds['handicap'] = $handicap;
$odds['difference'] = abs(1 / $odds['home'] - 1 / $odds['away']);