wip
This commit is contained in:
1 parent
d39a3a1dc2
commit
1be75dfc80
2 files changed
+3
-13
No files matched your search
@@ -74,6 +74,7 @@ class LoadEventsAspGoal
|
||||
return $query->where('starttime', '<=', $end);
|
||||
})
|
||||
->get();
|
||||
|
||||
break;
|
||||
case 'all':
|
||||
$res = StatistikoEvent::when($handicap_range, function ($query) use ($handicap_range) {
|
||||
@@ -88,10 +89,7 @@ class LoadEventsAspGoal
|
||||
->get();
|
||||
|
||||
break;
|
||||
default:
|
||||
/**
|
||||
* STATISTIC DATA
|
||||
*/
|
||||
case 'none':
|
||||
$res = StatistikoEvent::when($league_id, function ($query) use ($league_id) {
|
||||
return $query->where('league_id', $league_id);
|
||||
})->when($team_id, function ($query) use ($team_id, $team_position) {
|
||||
@@ -109,8 +107,8 @@ class LoadEventsAspGoal
|
||||
return $query->where('starttime', '<=', $end);
|
||||
})
|
||||
->get();
|
||||
break;
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user