diff --git a/app/Filament/Widgets/PlayerPropsTable.php b/app/Filament/Widgets/PlayerPropsTable.php index 18b4fdae..14f1b049 100644 --- a/app/Filament/Widgets/PlayerPropsTable.php +++ b/app/Filament/Widgets/PlayerPropsTable.php @@ -43,7 +43,6 @@ class PlayerPropsTable extends TableWidget
Foot
Evt
Min
- '); } diff --git a/app/Traits/Sofascore/GrappingSofascore.php b/app/Traits/Sofascore/GrappingSofascore.php index 2b97cdde..e05efa29 100644 --- a/app/Traits/Sofascore/GrappingSofascore.php +++ b/app/Traits/Sofascore/GrappingSofascore.php @@ -8,6 +8,7 @@ use App\Models\SofaScoreTaskDay; use App\Utilities\Notice; use Illuminate\Support\Carbon; use Illuminate\Support\Collection; +use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\File; use Illuminate\Support\Facades\Mail; @@ -51,10 +52,16 @@ trait GrappingSofascore public function handle(): void { + ini_set('memory_limit', '2048M'); + + set_time_limit(0); + error_reporting(E_ALL); ini_set('display_errors', 1); + DB::connection()->disableQueryLog(); + $this->debug = $this->options()['d'] ?? 0; $this->restart = $this->options()['r'] ?? 0; @@ -159,7 +166,7 @@ trait GrappingSofascore if (in_array($daily_way, [1, 3])) { $day = Carbon::now()->subDay()->format('Y-m-d'); - $this->grapped_files = $this->get_tree($this->data_dir . '/' . $day); + $this->grapped_files = $this->get_tree($this->data_dir.'/'.$day); $this->grap_tournaments_for_day($day); @@ -174,7 +181,7 @@ trait GrappingSofascore if (in_array($daily_way, [2, 3])) { $day = Carbon::now()->subDays(5)->format('Y-m-d'); - $this->grapped_files = $this->get_tree($this->data_dir . '/' . $day); + $this->grapped_files = $this->get_tree($this->data_dir.'/'.$day); $this->grap_tournaments_for_day($day); diff --git a/resources/views/livewire/player-props-drop.blade.php b/resources/views/livewire/player-props-drop.blade.php index 448ad098..5134dadf 100644 --- a/resources/views/livewire/player-props-drop.blade.php +++ b/resources/views/livewire/player-props-drop.blade.php @@ -6,7 +6,11 @@
{{ $team_name }} ({{ $player_on_field_counter }})
- + @@ -27,7 +31,6 @@ - {{-- --}} @role('super_admin')