wip
This commit is contained in:
1 parent
619ed50861
commit
2f7794b893
1 file changed
+5
-4
@@ -14,11 +14,12 @@ class MedianAverageWidget extends StatsOverviewWidget
|
||||
|
||||
protected function getStats(): array
|
||||
{
|
||||
dd($this->filters);
|
||||
if ($this->filters['similar_past_matches'] = 'none') {
|
||||
$data = LoadEvents::load($this->filters);
|
||||
$filters = $this->filters;
|
||||
|
||||
if ($filters['similar_past_matches'] == 'none') {
|
||||
$data = LoadEvents::load($filters);
|
||||
} else {
|
||||
$data = LoadEventsAspGoal::load($this->filters);
|
||||
$data = LoadEventsAspGoal::load($filters);
|
||||
}
|
||||
|
||||
if (! isset($data['datasets'][0])) {
|
||||
|
||||
Reference in new issue
Block a user