wip
This commit is contained in:
1 parent
7ba7fb2dac
commit
b89410c8f1
2 files changed
+4
-5
No files matched your search
@@ -11,7 +11,7 @@ class ImportDetails
|
|||||||
{
|
{
|
||||||
public static function run(string $filePath): void
|
public static function run(string $filePath): void
|
||||||
{
|
{
|
||||||
StatistikoDetail::query()->update(['last_import' => 'no']);
|
// StatistikoDetail::query()->update(['last_import' => 'no']);
|
||||||
|
|
||||||
SimpleExcelReader::create(storage_path('app/public/'.$filePath))
|
SimpleExcelReader::create(storage_path('app/public/'.$filePath))
|
||||||
->getRows()
|
->getRows()
|
||||||
@@ -50,6 +50,6 @@ class ImportDetails
|
|||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|
||||||
StatistikoDetail::where('last_import', 'no')->update(['is_active' => 0, 'ss_team_id' => 0]);
|
// StatistikoDetail::where('last_import', 'no')->update(['is_active' => 0, 'ss_team_id' => 0]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -5,12 +5,13 @@ namespace App\Filament\Widgets\Boxes;
|
|||||||
use App\Models\StatistikoDetail;
|
use App\Models\StatistikoDetail;
|
||||||
use App\Models\StatistikoEvent;
|
use App\Models\StatistikoEvent;
|
||||||
use App\Models\StatistikoPlayer;
|
use App\Models\StatistikoPlayer;
|
||||||
use Illuminate\Support\Facades\Log;
|
|
||||||
|
|
||||||
class LoadPlayerAverages
|
class LoadPlayerAverages
|
||||||
{
|
{
|
||||||
public static function load(int &$team_id, string|array $season)
|
public static function load(int &$team_id, string|array $season)
|
||||||
{
|
{
|
||||||
|
// dd($team_id);
|
||||||
|
|
||||||
$players = StatistikoDetail::where('ss_team_id', $team_id)->get();
|
$players = StatistikoDetail::where('ss_team_id', $team_id)->get();
|
||||||
|
|
||||||
$player_ids = [];
|
$player_ids = [];
|
||||||
@@ -106,8 +107,6 @@ class LoadPlayerAverages
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Log::debug('hall', $players->toArray());
|
|
||||||
|
|
||||||
return $arr;
|
return $arr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user