This commit is contained in:
salam committed 2026-05-21 19:07:37 +02:00
1 parent e7793158f8
commit 2a91a439df
1 file changed
+13 -4
+13 -4
View File
@@ -50,13 +50,22 @@ class LoadEventsAspGoal
$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;