Skip to content

Commit

Permalink
recalculate command improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
venix12 committed Jan 27, 2025
1 parent 3cc049e commit 5a00804
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/Console/Commands/UserSeasonScoresRecalculate.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,15 @@ protected function recalculate(Season $season): void

$seasonScore->season()->associate($season);
$seasonScore->calculate(false);
$seasonScore->save();
if ($seasonScore->total_score > 0) {
$seasonScore->save();
}

$bar->advance();
}
});

$bar->finish();
$this->newLine();
}
}

0 comments on commit 5a00804

Please sign in to comment.