Bonus Score Use

#20 Implement bonus scores
Bonus score is now included in total scores for seating.
This commit is contained in:
Matt Young 2024-07-16 00:09:10 -05:00
parent c04dd02405
commit d1cab82622
1 changed files with 1 additions and 0 deletions

View File

@ -89,6 +89,7 @@ class AllowForOlympicScoring implements CalculateEntryScore
if (! $bonusScoreDefinition) { if (! $bonusScoreDefinition) {
return 0; return 0;
} }
/** @noinspection PhpPossiblePolymorphicInvocationInspection */
$bonusJudges = $bonusScoreDefinition->judges; $bonusJudges = $bonusScoreDefinition->judges;
$bonusScoreSheets = BonusScore::where('entry_id', $entry->id)->get(); $bonusScoreSheets = BonusScore::where('entry_id', $entry->id)->get();
foreach ($bonusScoreSheets as $sheet) { foreach ($bonusScoreSheets as $sheet) {