wip
This commit is contained in:
1 parent
48e7abbe2b
commit
15de6feee8
3 files changed
+8
-7
No files matched your search
@@ -52,7 +52,7 @@ class Grap extends Command
|
|||||||
$txt .= ' 3 grapper RANGE' . PHP_EOL;
|
$txt .= ' 3 grapper RANGE' . PHP_EOL;
|
||||||
$txt .= ' 4 grapper ROSE' . PHP_EOL;
|
$txt .= ' 4 grapper ROSE' . PHP_EOL;
|
||||||
$txt .= ' 5 import to excel from folder' . PHP_EOL;
|
$txt .= ' 5 import to excel from folder' . PHP_EOL;
|
||||||
$txt .= ' 6 playeer/season' . PHP_EOL;
|
$txt .= ' 6 PlayerPerSeason pre calcuation' . PHP_EOL;
|
||||||
$txt .= ' 7 settings to local' . PHP_EOL;
|
$txt .= ' 7 settings to local' . PHP_EOL;
|
||||||
$txt .= ' 11 move SQL' . PHP_EOL;
|
$txt .= ' 11 move SQL' . PHP_EOL;
|
||||||
$txt .= ' 12 testing url for grapping' . PHP_EOL;
|
$txt .= ' 12 testing url for grapping' . PHP_EOL;
|
||||||
|
|||||||
@@ -432,6 +432,8 @@ class LoadPerformance
|
|||||||
$result = [];
|
$result = [];
|
||||||
foreach ($res as $value) {
|
foreach ($res as $value) {
|
||||||
|
|
||||||
|
// dd($value);
|
||||||
|
|
||||||
$match_id = $value->match_id;
|
$match_id = $value->match_id;
|
||||||
|
|
||||||
if (! isset($result[$match_id])) {
|
if (! isset($result[$match_id])) {
|
||||||
@@ -446,17 +448,17 @@ class LoadPerformance
|
|||||||
}
|
}
|
||||||
|
|
||||||
$result[$match_id]['all']['sum_min'] += (int) $value->minutes_played;
|
$result[$match_id]['all']['sum_min'] += (int) $value->minutes_played;
|
||||||
$result[$match_id]['all']['rating'] += (int) $value->playerrating_value * (int) $value->minutes_played;
|
$result[$match_id]['all']['rating'] += (float) $value->playerrating_value * (int) $value->minutes_played;
|
||||||
|
|
||||||
if ($value->player_position == 'M') {
|
if ($value->player_position == 'M') {
|
||||||
$result[$match_id]['mid']['sum_min'] += (int) $value->minutes_played;
|
$result[$match_id]['mid']['sum_min'] += (int) $value->minutes_played;
|
||||||
$result[$match_id]['mid']['rating'] += (int) $value->playerrating_value * (int) $value->minutes_played;
|
$result[$match_id]['mid']['rating'] += (float) $value->playerrating_value * (int) $value->minutes_played;
|
||||||
} elseif ($value->player_position == 'F') {
|
} elseif ($value->player_position == 'F') {
|
||||||
$result[$match_id]['att']['sum_min'] += (int) $value->minutes_played;
|
$result[$match_id]['att']['sum_min'] += (int) $value->minutes_played;
|
||||||
$result[$match_id]['att']['rating'] += (int) $value->playerrating_value * (int) $value->minutes_played;
|
$result[$match_id]['att']['rating'] += (float) $value->playerrating_value * (int) $value->minutes_played;
|
||||||
} elseif ($value->player_position == 'D') {
|
} elseif ($value->player_position == 'D') {
|
||||||
$result[$match_id]['def']['sum_min'] += (int) $value->minutes_played;
|
$result[$match_id]['def']['sum_min'] += (int) $value->minutes_played;
|
||||||
$result[$match_id]['def']['rating'] += (int) $value->playerrating_value * (int) $value->minutes_played;
|
$result[$match_id]['def']['rating'] += (float) $value->playerrating_value * (int) $value->minutes_played;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,10 +2,9 @@
|
|||||||
|
|
||||||
namespace App\Filament\Widgets\Data;
|
namespace App\Filament\Widgets\Data;
|
||||||
|
|
||||||
use App\Filament\Pages\Selections\Helper\GetSeason;
|
use Illuminate\Support\Carbon;
|
||||||
use App\Models\StatistikoDetail;
|
use App\Models\StatistikoDetail;
|
||||||
use App\Models\StatistikoPlayer;
|
use App\Models\StatistikoPlayer;
|
||||||
use Illuminate\Support\Carbon;
|
|
||||||
|
|
||||||
class LoadPlayerPerformance
|
class LoadPlayerPerformance
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user