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;