fix animation
This commit is contained in:
1 parent
f0bbcbc72f
commit
657f356590
10 files changed
+16046
-99
No files matched your search
@@ -74,11 +74,14 @@ class Grap extends Command
|
|||||||
|
|
||||||
// Grapper::load(2);
|
// Grapper::load(2);
|
||||||
// break;
|
// break;
|
||||||
// case 3:
|
case 3:
|
||||||
// SetStorage::set();
|
SetStorage::set(3);
|
||||||
|
|
||||||
// Grapper::load(3);
|
// Grapper::load(3);
|
||||||
// break;
|
|
||||||
|
MakeExcel::create();
|
||||||
|
|
||||||
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
SetStorage::set(4);
|
SetStorage::set(4);
|
||||||
|
|
||||||
@@ -86,8 +89,6 @@ class Grap extends Command
|
|||||||
|
|
||||||
MakeExcel::create();
|
MakeExcel::create();
|
||||||
|
|
||||||
// SendMail::run(4);
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
SetStorage::set(5);
|
SetStorage::set(5);
|
||||||
@@ -103,54 +104,10 @@ class Grap extends Command
|
|||||||
SettingsToLocal::run();
|
SettingsToLocal::run();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 8:
|
|
||||||
|
|
||||||
break;
|
|
||||||
|
|
||||||
|
|
||||||
// case 5:
|
|
||||||
|
|
||||||
// PlayerPerSeason::run();
|
|
||||||
// break;
|
|
||||||
|
|
||||||
// case 6:
|
|
||||||
|
|
||||||
// SettingsToLocal::run();
|
|
||||||
// break;
|
|
||||||
|
|
||||||
// case 7:
|
|
||||||
|
|
||||||
// SetStorage::set();
|
|
||||||
// MakeExcel::create();
|
|
||||||
// break;
|
|
||||||
|
|
||||||
// case 'zip':
|
|
||||||
// self::setStorage();
|
|
||||||
// ZipFolder::create();
|
|
||||||
// break;
|
|
||||||
|
|
||||||
// case 'mail':
|
|
||||||
// self::setStorage();
|
|
||||||
// SendMail::run();
|
|
||||||
// break;
|
|
||||||
|
|
||||||
// case 'rose':
|
|
||||||
// self::setStorage();
|
|
||||||
// Rose::run();
|
|
||||||
// break;
|
|
||||||
|
|
||||||
case '11':
|
case '11':
|
||||||
SqlMover::run();
|
SqlMover::run();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// case 'torunament_teams':
|
|
||||||
// TournamentTeams::get();
|
|
||||||
// break;
|
|
||||||
|
|
||||||
// case 'set_to_production':
|
|
||||||
// SettingsToProduction::run();
|
|
||||||
// break;
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
Notice::note('function not implemented yet', 'br', 1);
|
Notice::note('function not implemented yet', 'br', 1);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,9 +43,7 @@ class Grapper
|
|||||||
SofaScoreEventGrapped::where('grapper_id', $task_id)->delete();
|
SofaScoreEventGrapped::where('grapper_id', $task_id)->delete();
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Restart RANGE call
|
* Restart
|
||||||
* empty grapping folder
|
|
||||||
* empty mail text
|
|
||||||
*/
|
*/
|
||||||
if ($restart) {
|
if ($restart) {
|
||||||
|
|
||||||
@@ -213,7 +211,7 @@ class Grapper
|
|||||||
$count++;
|
$count++;
|
||||||
|
|
||||||
if ($debug) {
|
if ($debug) {
|
||||||
Notice::note("Grapper done, ($count)", 'bb');
|
Notice::note("$count days done", 'bp');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,8 +34,8 @@ class SetStorage
|
|||||||
Grap::$zipfile = $sofascore_data . $storage_name . '/' . $task->day_from . '.zip';
|
Grap::$zipfile = $sofascore_data . $storage_name . '/' . $task->day_from . '.zip';
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
Grap::$storage = $sofascore_data . $storage_name . '-' . $task->day_from . '-' . $task->day_to;
|
Grap::$storage = $sofascore_data . 'range/';
|
||||||
Grap::$zipfile = $sofascore_data . $storage_name . '-' . $task->day_from . '-' . $task->day_to . '.zip';
|
Grap::$folder = $storage_name . '-' . $task->day_from . '-' . $task->day_to;
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
Grap::$storage = $sofascore_data . $storage_name;
|
Grap::$storage = $sofascore_data . $storage_name;
|
||||||
|
|||||||
@@ -2,7 +2,11 @@
|
|||||||
|
|
||||||
namespace App\Console\Commands\Grapper\Sofascore;
|
namespace App\Console\Commands\Grapper\Sofascore;
|
||||||
|
|
||||||
|
use App\Console\Commands\Grap;
|
||||||
|
use App\Console\Commands\Grapper\Sofascore\Helper\ReadDir;
|
||||||
|
use App\Console\Commands\Grapper\Sofascore\Helper\Strings;
|
||||||
use App\Models\SofaScoreRosa;
|
use App\Models\SofaScoreRosa;
|
||||||
|
use App\Models\SofaScoreTask;
|
||||||
use App\Models\StatistikoEvent;
|
use App\Models\StatistikoEvent;
|
||||||
use App\Models\StatistikoPlayer;
|
use App\Models\StatistikoPlayer;
|
||||||
use App\Utilities\Notice;
|
use App\Utilities\Notice;
|
||||||
@@ -15,17 +19,22 @@ class SqlMover
|
|||||||
Notice::note('SqlMover', 'b');
|
Notice::note('SqlMover', 'b');
|
||||||
|
|
||||||
|
|
||||||
$file = file_get_contents(__dir__ . '/rosters.csv');
|
// $task = SofaScoreTask::where('id', 3)->first();
|
||||||
|
// $folder = Strings::clean($task->name) . '-' . $task->day_from . '-' . $task->day_to;
|
||||||
|
// $sofascore_data = storage_path('sofascore_data') . '/';
|
||||||
|
// $files = ReadDir::get_tree($sofascore_data . $folder);
|
||||||
|
// dd($files);
|
||||||
|
|
||||||
|
$file = file_get_contents(__dir__ . '/SqlMover/grapped.txt');
|
||||||
$data = explode(PHP_EOL, $file);
|
$data = explode(PHP_EOL, $file);
|
||||||
|
$arr = [];
|
||||||
foreach ($data as $value) {
|
foreach ($data as $value) {
|
||||||
$row = str_getcsv($value, ';');
|
if (strpos($value, 'Grapped', 0) !== false) {
|
||||||
|
$arr[] = $value;
|
||||||
SofaScoreRosa::updateOrCreate(
|
}
|
||||||
['sport_id' => 1, 'ss_team_id' => $row[2]],
|
|
||||||
['cc' => $row[0], 'ss_team_name' => $row[3], 'slug' => $row[4]]
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
Notice::note($arr, '', 1);
|
||||||
|
|
||||||
|
|
||||||
// Notice::note('StatistikoPlayer', 'b');
|
// Notice::note('StatistikoPlayer', 'b');
|
||||||
// $res = StatistikoEvent::pluck('match_id');
|
// $res = StatistikoEvent::pluck('match_id');
|
||||||
|
|||||||
File diff suppressed because it is too large.
Load diff
File renamed without changes.
|
500 Internal Server Error
An error occurred: An error occurred Gitea Version: 28.0.0 |