siplify grapper ask for speed

This commit is contained in:
salam committed 2026-10-13 08:06:07 +02:00
1 parent 8ec2203918
commit d221ff6eac
36 files changed
+111 -18439

No files matched your search

+3 -4
View File
@@ -2,7 +2,6 @@
namespace App\Traits\Sofascore;
use App\Console\Commands\Grapper\Sofascore\Helper\Strings;
use App\Models\SofaScoreRosa;
use App\Models\SofaScoreRosaTournament;
use App\Models\SofaScoreTournament;
@@ -59,7 +58,7 @@ trait GrappingTeams
echo "\n$key/$count\n";
}
$url = $this->base_url."api/v1/team/$value->ss_team_id/players";
$url = $this->base_url . "api/v1/team/$value->ss_team_id/players";
if ($this->debug) {
Notice::note($url, 'b');
@@ -75,11 +74,11 @@ trait GrappingTeams
* add team to folder
*********************************/
File::put($this->data_dir.'/'.Strings::clean($value->ss_team_name).'.json', json_encode($data));
File::put($this->data_dir . '/' . $this->clean_string($value->ss_team_name) . '.json', json_encode($data));
SofaScoreRosa::where('id', $value->id)->update(['grapped' => 1]);
$this->sleep();
$this->grapper_sleep($this->speed);
}
$this->import_to_excel("rose_$what");