wip
This commit is contained in:
1 parent
55cd29da32
commit
fa89153a76
2 files changed
+31
-23
No files matched your search
@@ -139,7 +139,7 @@ trait GrappingSofascore
|
||||
|
||||
$this->speed = $this->ask_speed();
|
||||
|
||||
$this->debug = $this->ask_debug();
|
||||
$this->debug = $this->ask_debug() == 'yes' ? 1 : 0;
|
||||
|
||||
$daily_way = $this->select_daily_days();
|
||||
|
||||
@@ -252,12 +252,17 @@ trait GrappingSofascore
|
||||
$this->restart = 1;
|
||||
|
||||
SofaScoreTaskDay::where('grapper_id', (int) $this->task_id)->delete();
|
||||
|
||||
SofaScoreEventGrapped::truncate();
|
||||
|
||||
break;
|
||||
case 'clear':
|
||||
if ($this->confirm_delete() == 'Yes') {
|
||||
$this->restart = 1;
|
||||
$this->clear_folder($folder, 'all');
|
||||
|
||||
SofaScoreEventGrapped::truncate();
|
||||
|
||||
SofaScoreTaskDay::where('grapper_id', (int) $this->task_id)->delete();
|
||||
}
|
||||
break;
|
||||
@@ -283,6 +288,9 @@ trait GrappingSofascore
|
||||
Notice::note("$day Events allready grapped", 'br');
|
||||
}
|
||||
} else {
|
||||
|
||||
$this->grapped_files = $this->get_tree($this->data_dir.'/'.$day);
|
||||
|
||||
$this->grap_tournaments_for_day($day);
|
||||
|
||||
foreach ($this->tournaments_requested as $tournament) {
|
||||
@@ -403,14 +411,14 @@ trait GrappingSofascore
|
||||
);
|
||||
}
|
||||
|
||||
protected function ask_debug(): int
|
||||
protected function ask_debug(): string
|
||||
{
|
||||
return select(
|
||||
label: 'Show debubing?',
|
||||
default: 1,
|
||||
default: 'yes',
|
||||
options: [
|
||||
0 => 'No',
|
||||
1 => 'Yes',
|
||||
'no' => 'No',
|
||||
'yes' => 'Yes',
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user