wip
This commit is contained in:
1 parent
e7793158f8
commit
2a91a439df
1 file changed
+13
-4
@@ -50,13 +50,22 @@ class LoadEventsAspGoal
|
|||||||
|
|
||||||
$accuracy = (float) $filter['accuracy'];
|
$accuracy = (float) $filter['accuracy'];
|
||||||
|
|
||||||
$exp_handicap = $res['exp_away'] - $res['exp_home'];
|
if ($res == null) {
|
||||||
|
|
||||||
$exp_total = $res['exp_away'] + $res['exp_home'];
|
$handicap_range = 0;
|
||||||
|
|
||||||
$handicap_range = [$exp_handicap - $accuracy, $exp_handicap + $accuracy];
|
$total_range = 0;
|
||||||
|
|
||||||
$total_range = [$exp_total - $accuracy, $exp_total + $accuracy];
|
} else {
|
||||||
|
|
||||||
|
$exp_handicap = $res['exp_away'] - $res['exp_home'];
|
||||||
|
|
||||||
|
$exp_total = $res['exp_away'] + $res['exp_home'];
|
||||||
|
|
||||||
|
$handicap_range = [$exp_handicap - $accuracy, $exp_handicap + $accuracy];
|
||||||
|
|
||||||
|
$total_range = [$exp_total - $accuracy, $exp_total + $accuracy];
|
||||||
|
}
|
||||||
|
|
||||||
$similar_past_matches = $filter['similar_past_matches'] ?? 0;
|
$similar_past_matches = $filter['similar_past_matches'] ?? 0;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user