Skip to content

Commit

Permalink
remove shift
Browse files Browse the repository at this point in the history
  • Loading branch information
jericdei committed Oct 8, 2024
1 parent cc8c643 commit 4195d07
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Commands/ConvertToDatabaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,12 @@ public function handle()

$this->info('Reading PSGC Excel file...');

/** @var array $worksheet */
$worksheet = Cache::rememberForever(
'psgc-latest',
fn() => SimpleExcelReader::create($file)->fromSheetName('PSGC')->getRows()->toArray()
);

array_shift($worksheet);

$this->info('Writing to database...');

$bar = $this->output->createProgressBar(count($worksheet));
Expand Down

0 comments on commit 4195d07

Please sign in to comment.