grapper & statisrtik combo boxes color
This commit is contained in:
1 parent
f4f01a58fa
commit
24ecf97268
4 files changed
+39
-36
No files matched your search
@@ -42,7 +42,7 @@ class Grapper
|
||||
* empty grapping folder
|
||||
* empty mailing text
|
||||
*/
|
||||
// File::cleanDirectory(Sofascore::$storage); dd('clead dir');
|
||||
File::cleanDirectory(Sofascore::$storage);
|
||||
|
||||
SofaScoreEventGrapped::query()->update(['in_current_grapper' => false]);
|
||||
|
||||
@@ -82,7 +82,7 @@ class Grapper
|
||||
|
||||
if ($now->greaterThan($starttime)) {
|
||||
|
||||
Sleeper::rand();
|
||||
Sleeper::rand(1);
|
||||
|
||||
if ($debug) {
|
||||
Notice::note($day . ' - ' . $event['homeTeam']['name'] . ' vs ' . $event['awayTeam']['name'], 'bg');
|
||||
|
||||
@@ -28,30 +28,30 @@ class LoadDays
|
||||
Notice::note('LoadDays ' . $task->mode . ' sport: ' . $task->sport_id);
|
||||
}
|
||||
|
||||
switch ($task->mode) {
|
||||
switch ($task->id) {
|
||||
|
||||
case 'auto_updater':
|
||||
case 1:
|
||||
$dates[] = [
|
||||
'day' => Carbon::now()->subDay()->format('Y-m-d'),
|
||||
'slug' => $task->sport->ss_slug,
|
||||
'sport_id' => $task->sport_id,
|
||||
'run_repeatedly' => $task->run_repeatedly,
|
||||
];
|
||||
$dates[] = [
|
||||
'day' => Carbon::now()->subDays(2)->format('Y-m-d'),
|
||||
'slug' => $task->sport->ss_slug,
|
||||
'sport_id' => $task->sport_id,
|
||||
'run_repeatedly' => $task->run_repeatedly,
|
||||
];
|
||||
$dates[] = [
|
||||
'day' => Carbon::now()->subDays(3)->format('Y-m-d'),
|
||||
'slug' => $task->sport->ss_slug,
|
||||
'sport_id' => $task->sport_id,
|
||||
'run_repeatedly' => $task->run_repeatedly,
|
||||
];
|
||||
// $dates[] = [
|
||||
// 'day' => Carbon::now()->subDays(2)->format('Y-m-d'),
|
||||
// 'slug' => $task->sport->ss_slug,
|
||||
// 'sport_id' => $task->sport_id,
|
||||
// 'run_repeatedly' => $task->run_repeatedly,
|
||||
// ];
|
||||
// $dates[] = [
|
||||
// 'day' => Carbon::now()->subDays(3)->format('Y-m-d'),
|
||||
// 'slug' => $task->sport->ss_slug,
|
||||
// 'sport_id' => $task->sport_id,
|
||||
// 'run_repeatedly' => $task->run_repeatedly,
|
||||
// ];
|
||||
break;
|
||||
|
||||
case 'date':
|
||||
case 2:
|
||||
$dates[] = [
|
||||
'day' => self::validateDate($task->day_from),
|
||||
'slug' => $task->sport->ss_slug,
|
||||
@@ -60,7 +60,7 @@ class LoadDays
|
||||
];
|
||||
break;
|
||||
|
||||
case 'range':
|
||||
case 3:
|
||||
$from = self::validateDate($task->day_from);
|
||||
$to = self::validateDate($task->day_to);
|
||||
|
||||
|
||||
Reference in new issue
Block a user