From 67ceae6f01ab113f5e57aed6e7010827056c876d Mon Sep 17 00:00:00 2001 From: Matt Young Date: Sat, 8 Nov 2025 13:43:08 -0600 Subject: [PATCH] Fix issue in advancement - ignore seating only --- app/Http/Controllers/Tabulation/AdvancementController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'); });