This commit is contained in:
salam committed 2026-10-16 22:47:24 +02:00
1 parent d2733e16bc
commit 5ac22d5e18
2 files changed
+6 -2

No files matched your search

@@ -250,11 +250,15 @@ trait GrappingSofascore
switch ($restart) { switch ($restart) {
case 'restart': case 'restart':
$this->restart = 1; $this->restart = 1;
SofaScoreTaskDay::where('grapper_id', (int) $this->task_id)->delete();
break; break;
case 'clear': case 'clear':
if ($this->confirm_delete() == 'Yes') { if ($this->confirm_delete() == 'Yes') {
$this->restart = 1; $this->restart = 1;
$this->clear_folder($folder, 'all'); $this->clear_folder($folder, 'all');
SofaScoreTaskDay::where('grapper_id', (int) $this->task_id)->delete();
} }
break; break;
} }
+2 -2
View File
@@ -21,7 +21,7 @@ trait GrappingTournaments
$sport_id = 1; $sport_id = 1;
if ($this->debug) { if ($this->debug) {
Notice::note('⚽ tournaments for day ' . $day); Notice::note('⚽ tournaments for day '.$day);
Notice::note('⚽ close all vpn'); Notice::note('⚽ close all vpn');
} }
exec('killall ssh'); exec('killall ssh');
@@ -61,7 +61,7 @@ trait GrappingTournaments
$this->grapper_sleep(); $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; $cloudflareService = new CloudflareSolverService;