This commit is contained in:
salam committed 2026-10-28 12:27:22 +01:00
1 parent d1163b6692
commit d4a4d0c5f1
5 files changed
+11 -3

No files matched your search

@@ -52,6 +52,7 @@ class ImportDetails
'last_update',
'is_active',
'last_import',
'betradar_player_id',
]);
});
@@ -11,7 +11,7 @@ class ImportFixtures
{
public static function run(string $filePath): void
{
SimpleExcelReader::create(storage_path('app/public/' . $filePath))
SimpleExcelReader::create(storage_path('app/public/'.$filePath))
->getRows()
->chunk(200)
->each(function (LazyCollection $chunk) {
@@ -38,7 +38,11 @@ class ImportFixtures
'away_id' => (int) $row[3],
'starttime' => Carbon::parse($row[4])->toDateTimeString(),
],
['exp_home' => (float) $row[5], 'exp_away' => (float) $row[6]]
[
'exp_home' => (float) $row[5],
'exp_away' => (float) $row[6],
'betradar_id' => (int) $row[9],
]
);
}
});