Statistiko in header

This commit is contained in:
salam committed 2026-08-17 11:25:25 +02:00
1 parent e303d0fa5c
commit 537dad3327
5 files changed
+7 -7

No files matched your search

+2 -4
View File
@@ -16,12 +16,10 @@ use Illuminate\Console\Command;
class Grap extends Command
{
public static $options = [];
public static string $storage;
public static string $zipfile;
public static string $folder;
public static string $excel;
public static string $useragent = '4';
@@ -77,7 +75,7 @@ class Grap extends Command
case 3:
SetStorage::set(3);
Grapper::load(3);
// Grapper::load(3);
MakeExcel::create();
@@ -119,7 +119,7 @@ class Grapper
$grapped->url = $url;
$grapped->starttime = $starttime->toDateTimeString();
$folder = Grap::$storage . '/' . $day . '/' . $day . '-' . $event['tournament']['category']['slug'] . '-' . $event['tournament']['slug'] . '/' . $event['slug'];
$folder = strtolower(Grap::$storage . '/' . $day . '/' . $day . '-' . $event['tournament']['category']['slug'] . '-' . $event['tournament']['slug'] . '/' . $event['slug']);
File::makeDirectory($folder, 0775, true, true);
@@ -28,6 +28,7 @@ class SetStorage
case 1:
Grap::$storage = $sofascore_data . $storage_name;
Grap::$folder = Carbon::now()->subDays($day)->format('Y-m-d');
Grap::$excel = Grap::$storage . '/' . Grap::$folder;
break;
case 2:
Grap::$storage = $sofascore_data . $storage_name . '/' . $task->day_from;
@@ -36,6 +37,7 @@ class SetStorage
case 3:
Grap::$storage = $sofascore_data . 'range/' . $storage_name;
Grap::$folder = $storage_name . '-' . $task->day_from . '-' . $task->day_to;
Grap::$excel = $sofascore_data . 'range/' . $storage_name;
break;
case 4:
Grap::$storage = $sofascore_data . $storage_name;
@@ -25,7 +25,7 @@ class MakeExcel
Notice::note("Make Excel");
}
$files = ReadDir::get_tree(Grap::$storage . '/' . Grap::$folder);
$files = ReadDir::get_tree(Grap::$excel);
$files = array_chunk(FileType::filter($files), self::$max);