This commit is contained in:
salam committed 2026-10-14 13:21:09 +02:00
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
{
StatistikoDetail::query()->update(['last_import' => 'no']);
// StatistikoDetail::query()->update(['last_import' => 'no']);
SimpleExcelReader::create(storage_path('app/public/'.$filePath))
->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\StatistikoEvent;
use App\Models\StatistikoPlayer;
use Illuminate\Support\Facades\Log;
class LoadPlayerAverages
{
public static function load(int &$team_id, string|array $season)
{
// dd($team_id);
$players = StatistikoDetail::where('ss_team_id', $team_id)->get();
$player_ids = [];
@@ -106,8 +107,6 @@ class LoadPlayerAverages
}
}
Log::debug('hall', $players->toArray());
return $arr;
}