This commit is contained in:
salam committed 2026-09-21 22:24:29 +02:00
1 parent 2085d0f512
commit b72b99273f
5 files changed
+19 -13

No files matched your search

@@ -13,6 +13,7 @@ use App\Models\SofaScoreTaskTournament;
use App\Utilities\Notice;
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\File;
use Illuminate\Support\Facades\Storage;
class Grapper
{
@@ -101,10 +102,13 @@ class Grapper
foreach ($data['events'] as $event) {
Grap::$useragent = rand(1, 6);
if (! $force && SofaScoreEventGrapped::where('id', (int) $event['id'])->exists()) {
if (Storage::directoryExists(Grap::$storage . '/' . $day)) {
if ($debug) {
Notice::note('Allready grapped at ' . $day . ' - ' . $event['homeTeam']['name'] . ' vs ' . $event['awayTeam']['name'], 'g');
Notice::note('FOLDER - Allready grapped at ' . $day . ' - ' . $event['homeTeam']['name'] . ' vs ' . $event['awayTeam']['name'], 'g');
}
} else if (! $force && SofaScoreEventGrapped::where('id', (int) $event['id'])->exists()) {
if ($debug) {
Notice::note('DB - Allready grapped at ' . $day . ' - ' . $event['homeTeam']['name'] . ' vs ' . $event['awayTeam']['name'], 'g');
}
} else {