wip
This commit is contained in:
1 parent
483b5e1abe
commit
e41168121f
3 files changed
+14
-5
No files matched your search
@@ -43,7 +43,6 @@ class PlayerPropsTable extends TableWidget
|
|||||||
<div>Foot</div>
|
<div>Foot</div>
|
||||||
<div>Evt</div>
|
<div>Evt</div>
|
||||||
<div>Min</div>
|
<div>Min</div>
|
||||||
|
|
||||||
</div>');
|
</div>');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ use App\Models\SofaScoreTaskDay;
|
|||||||
use App\Utilities\Notice;
|
use App\Utilities\Notice;
|
||||||
use Illuminate\Support\Carbon;
|
use Illuminate\Support\Carbon;
|
||||||
use Illuminate\Support\Collection;
|
use Illuminate\Support\Collection;
|
||||||
|
use Illuminate\Support\Facades\DB;
|
||||||
use Illuminate\Support\Facades\File;
|
use Illuminate\Support\Facades\File;
|
||||||
use Illuminate\Support\Facades\Mail;
|
use Illuminate\Support\Facades\Mail;
|
||||||
|
|
||||||
@@ -51,10 +52,16 @@ trait GrappingSofascore
|
|||||||
|
|
||||||
public function handle(): void
|
public function handle(): void
|
||||||
{
|
{
|
||||||
|
ini_set('memory_limit', '2048M');
|
||||||
|
|
||||||
|
set_time_limit(0);
|
||||||
|
|
||||||
error_reporting(E_ALL);
|
error_reporting(E_ALL);
|
||||||
|
|
||||||
ini_set('display_errors', 1);
|
ini_set('display_errors', 1);
|
||||||
|
|
||||||
|
DB::connection()->disableQueryLog();
|
||||||
|
|
||||||
$this->debug = $this->options()['d'] ?? 0;
|
$this->debug = $this->options()['d'] ?? 0;
|
||||||
|
|
||||||
$this->restart = $this->options()['r'] ?? 0;
|
$this->restart = $this->options()['r'] ?? 0;
|
||||||
@@ -159,7 +166,7 @@ trait GrappingSofascore
|
|||||||
if (in_array($daily_way, [1, 3])) {
|
if (in_array($daily_way, [1, 3])) {
|
||||||
$day = Carbon::now()->subDay()->format('Y-m-d');
|
$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);
|
$this->grap_tournaments_for_day($day);
|
||||||
|
|
||||||
@@ -174,7 +181,7 @@ trait GrappingSofascore
|
|||||||
if (in_array($daily_way, [2, 3])) {
|
if (in_array($daily_way, [2, 3])) {
|
||||||
$day = Carbon::now()->subDays(5)->format('Y-m-d');
|
$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);
|
$this->grap_tournaments_for_day($day);
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,11 @@
|
|||||||
<div class="text-3xl font-bold"> {{ $team_name }} <span
|
<div class="text-3xl font-bold"> {{ $team_name }} <span
|
||||||
class="text-sm font-light">({{ $player_on_field_counter }})</span></div>
|
class="text-sm font-light">({{ $player_on_field_counter }})</span></div>
|
||||||
<div class="flex gap-3">
|
<div class="flex gap-3">
|
||||||
<x-filament::button icon="phosphor-user-circle-check" color="success" tooltip="Find best formation and create lineup" wire:click="generateBestLineUp()"/>
|
<x-filament::button
|
||||||
|
icon="phosphor-user-circle-check"
|
||||||
|
tooltip="Find best formation and create lineup"
|
||||||
|
wire:click="generateBestLineUp"
|
||||||
|
/>
|
||||||
<x-filament::button icon="phosphor-user-switch" tooltip="Create lineup for selected formation" wire:click="generateLineUp()"/>
|
<x-filament::button icon="phosphor-user-switch" tooltip="Create lineup for selected formation" wire:click="generateLineUp()"/>
|
||||||
<x-filament::button icon="phosphor-x" tooltip="Clear all" wire:click="clearResultTable()" />
|
<x-filament::button icon="phosphor-x" tooltip="Clear all" wire:click="clearResultTable()" />
|
||||||
|
|
||||||
@@ -27,7 +31,6 @@
|
|||||||
</x-slot>
|
</x-slot>
|
||||||
</x-filament::modal>
|
</x-filament::modal>
|
||||||
<x-filament::button icon="phosphor-arrows-clockwise" tooltip="Reload" wire:click="loadPlacement()" />
|
<x-filament::button icon="phosphor-arrows-clockwise" tooltip="Reload" wire:click="loadPlacement()" />
|
||||||
{{-- <x-filament::button icon="phosphor-calculator" tooltip="Calculate" wire:click="calculateAspg(1)" /> --}}
|
|
||||||
<x-filament::button icon="phosphor-copy" color="success"
|
<x-filament::button icon="phosphor-copy" color="success"
|
||||||
tooltip="Copy results for pasting into a spread sheet" wire:click="copyResult()" />
|
tooltip="Copy results for pasting into a spread sheet" wire:click="copyResult()" />
|
||||||
@role('super_admin')
|
@role('super_admin')
|
||||||
|
|||||||
Reference in new issue
Block a user