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