wip db
This commit is contained in:
1 parent
10429f0595
commit
13eadd045b
6 files changed
+16
-2
No files matched your search
@@ -24,6 +24,8 @@ class _Points
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($odds['home'] >= 1 && $odds['away'] >= 1) {
|
||||||
|
|
||||||
$odds['difference'] = abs(1 / $odds['home'] - 1 / $odds['away']);
|
$odds['difference'] = abs(1 / $odds['home'] - 1 / $odds['away']);
|
||||||
|
|
||||||
$odds['margin'] = (float) Margin::calculate([$odds['home'], $odds['away']], 1);
|
$odds['margin'] = (float) Margin::calculate([$odds['home'], $odds['away']], 1);
|
||||||
@@ -45,6 +47,7 @@ class _Points
|
|||||||
}, 5);
|
}, 5);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ActiveSpread::collect($odds, 'odds_points');
|
ActiveSpread::collect($odds, 'odds_points');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ class _PointsHt
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($odds['home'] >= 1 && $odds['away'] >= 1) {
|
||||||
$odds['difference'] = abs(1 / $odds['home'] - 1 / $odds['away']);
|
$odds['difference'] = abs(1 / $odds['home'] - 1 / $odds['away']);
|
||||||
|
|
||||||
$odds['margin'] = (float) Margin::calculate([$odds['home'], $odds['away']], 1);
|
$odds['margin'] = (float) Margin::calculate([$odds['home'], $odds['away']], 1);
|
||||||
@@ -45,6 +46,7 @@ class _PointsHt
|
|||||||
}, 5);
|
}, 5);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ActiveSpread::collect($odds, 'odds_points_ht');
|
ActiveSpread::collect($odds, 'odds_points_ht');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ class _PointsQ1
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($odds['home'] >= 1 && $odds['away'] >= 1) {
|
||||||
$odds['difference'] = abs(1 / $odds['home'] - 1 / $odds['away']);
|
$odds['difference'] = abs(1 / $odds['home'] - 1 / $odds['away']);
|
||||||
|
|
||||||
$odds['margin'] = (float) Margin::calculate([$odds['home'], $odds['away']], 1);
|
$odds['margin'] = (float) Margin::calculate([$odds['home'], $odds['away']], 1);
|
||||||
@@ -45,6 +46,7 @@ class _PointsQ1
|
|||||||
}, 5);
|
}, 5);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ActiveSpread::collect($odds, 'odds_points_q1');
|
ActiveSpread::collect($odds, 'odds_points_q1');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ class _Totals
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($odds['over'] >= 1 && $odds['under'] >= 1) {
|
||||||
|
|
||||||
$odds['difference'] = abs(1 / $odds['over'] - 1 / $odds['under']);
|
$odds['difference'] = abs(1 / $odds['over'] - 1 / $odds['under']);
|
||||||
|
|
||||||
$odds['margin'] = (float) Margin::calculate([$odds['over'], $odds['under']], 1);
|
$odds['margin'] = (float) Margin::calculate([$odds['over'], $odds['under']], 1);
|
||||||
@@ -49,7 +51,7 @@ class _Totals
|
|||||||
DB::transaction(function () use ($res) {
|
DB::transaction(function () use ($res) {
|
||||||
$res->save();
|
$res->save();
|
||||||
}, 5);
|
}, 5);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ActiveSpread::collect($odds, 'odds_totals');
|
ActiveSpread::collect($odds, 'odds_totals');
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ class _TotalsHt
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($odds['over'] >= 1 && $odds['under'] >= 1) {
|
||||||
|
|
||||||
$odds['difference'] = abs(1 / $odds['over'] - 1 / $odds['under']);
|
$odds['difference'] = abs(1 / $odds['over'] - 1 / $odds['under']);
|
||||||
|
|
||||||
$odds['margin'] = (float) Margin::calculate([$odds['over'], $odds['under']], 1);
|
$odds['margin'] = (float) Margin::calculate([$odds['over'], $odds['under']], 1);
|
||||||
@@ -51,6 +53,7 @@ class _TotalsHt
|
|||||||
}, 5);
|
}, 5);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ActiveSpread::collect($odds, 'odds_totals_ht');
|
ActiveSpread::collect($odds, 'odds_totals_ht');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ class _TotalsQ1
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($odds['over'] >= 1 && $odds['under'] >= 1) {
|
||||||
|
|
||||||
$odds['difference'] = abs(1 / $odds['over'] - 1 / $odds['under']);
|
$odds['difference'] = abs(1 / $odds['over'] - 1 / $odds['under']);
|
||||||
|
|
||||||
$odds['margin'] = (float) Margin::calculate([$odds['over'], $odds['under']], 1);
|
$odds['margin'] = (float) Margin::calculate([$odds['over'], $odds['under']], 1);
|
||||||
@@ -49,7 +51,7 @@ class _TotalsQ1
|
|||||||
DB::transaction(function () use ($res) {
|
DB::transaction(function () use ($res) {
|
||||||
$res->save();
|
$res->save();
|
||||||
}, 5);
|
}, 5);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ActiveSpread::collect($odds, 'odds_totals_q1');
|
ActiveSpread::collect($odds, 'odds_totals_q1');
|
||||||
|
|||||||
Reference in new issue
Block a user