diff --git a/app/Http/Controllers/Tabulation/AdvancementController.php b/app/Http/Controllers/Tabulation/AdvancementController.php index 957c17f..20fddbc 100644 --- a/app/Http/Controllers/Tabulation/AdvancementController.php +++ b/app/Http/Controllers/Tabulation/AdvancementController.php @@ -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'); });