Fix issue in advancement - ignore seating only

This commit is contained in:
Matt Young 2025-11-08 13:43:08 -06:00
parent a59217db41
commit 67ceae6f01
1 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ class AdvancementController extends Controller
$entries = $ranker($audition, 'advancement');
$entries->load(['advancementVotes', 'totalScore', 'student.school']);
$unscoredEntries = $audition->entries()->orderBy('draw_number')->get()->filter(function ($entry) {
$unscoredEntries = $audition->entries()->where('for_advancement', true)->orderBy('draw_number')->get()->filter(function ($entry) {
return ! $entry->totalScore && ! $entry->hasFlag('no_show');
});
@ -81,7 +81,7 @@ class AdvancementController extends Controller
return $entry->hasFlag('no_show');
});
$scoringComplete = $audition->entries->every(function ($entry) {
$scoringComplete = $audition->entries->where('for_advancement, true')->every(function ($entry) {
return $entry->totalScore || $entry->hasFlag('no_show');
});