Auditionadmin 68 #85

Merged
okorpheus merged 11 commits from auditionadmin-68 into master 2024-10-31 17:22:49 +00:00
1 changed files with 4 additions and 0 deletions
Showing only changes of commit 94ed41ee6f - Show all commits

View File

@ -35,6 +35,10 @@ class AllowForOlympicScoring implements CalculateEntryScore
public function calculate(string $mode, Entry $entry): array
{
$calculated = CalculatedScore::where('entry_id', $entry->id)->where('mode', $mode)->first();
if ($calculated) {
return $calculated->calculatedScore;
}
$cacheKey = 'entryScore-'.$entry->id.'-'.$mode;