From 5ac22d5e18c6f97a94c330246fef146c0a47fc8b Mon Sep 17 00:00:00 2001 From: salam Date: Fri, 16 Oct 2026 22:47:24 +0200 Subject: [PATCH] wip --- app/Traits/Sofascore/GrappingSofascore.php | 4 ++++ app/Traits/Sofascore/GrappingTournaments.php | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/Traits/Sofascore/GrappingSofascore.php b/app/Traits/Sofascore/GrappingSofascore.php index 28ea1bab..70920c91 100644 --- a/app/Traits/Sofascore/GrappingSofascore.php +++ b/app/Traits/Sofascore/GrappingSofascore.php @@ -250,11 +250,15 @@ trait GrappingSofascore switch ($restart) { case 'restart': $this->restart = 1; + + SofaScoreTaskDay::where('grapper_id', (int) $this->task_id)->delete(); break; case 'clear': if ($this->confirm_delete() == 'Yes') { $this->restart = 1; $this->clear_folder($folder, 'all'); + + SofaScoreTaskDay::where('grapper_id', (int) $this->task_id)->delete(); } break; } diff --git a/app/Traits/Sofascore/GrappingTournaments.php b/app/Traits/Sofascore/GrappingTournaments.php index 69064832..aec21e74 100644 --- a/app/Traits/Sofascore/GrappingTournaments.php +++ b/app/Traits/Sofascore/GrappingTournaments.php @@ -21,7 +21,7 @@ trait GrappingTournaments $sport_id = 1; if ($this->debug) { - Notice::note('⚽ tournaments for day ' . $day); + Notice::note('⚽ tournaments for day '.$day); Notice::note('⚽ close all vpn'); } exec('killall ssh'); @@ -61,7 +61,7 @@ trait GrappingTournaments $this->grapper_sleep(); - $url = $this->base_url . "api/v1/sport/$slug/scheduled-tournaments/$day/page/$page"; + $url = $this->base_url."api/v1/sport/$slug/scheduled-tournaments/$day/page/$page"; $cloudflareService = new CloudflareSolverService;