diff --git a/app/Actions/Tabulation/AllowForOlympicScoring.php b/app/Actions/Tabulation/AllowForOlympicScoring.php index be88354..66472a6 100644 --- a/app/Actions/Tabulation/AllowForOlympicScoring.php +++ b/app/Actions/Tabulation/AllowForOlympicScoring.php @@ -150,6 +150,10 @@ class AllowForOlympicScoring implements CalculateEntryScore protected function isEntryANoShow(Entry $entry): void { + if ($entry->hasFlag('failed_prelim')) { + throw new TabulationException('Failed Prelim'); + } + if ($entry->hasFlag('no_show')) { throw new TabulationException('No Show'); } diff --git a/app/Actions/Tabulation/RankAuditionEntries.php b/app/Actions/Tabulation/RankAuditionEntries.php index 7071ff2..6ddcb6f 100644 --- a/app/Actions/Tabulation/RankAuditionEntries.php +++ b/app/Actions/Tabulation/RankAuditionEntries.php @@ -72,12 +72,12 @@ class RankAuditionEntries $entry->raw_rank = $rawRank; // We don't really get a rank for seating if we have certain flags if ($mode === 'seating') { - if ($entry->hasFlag('declined')) { + if ($entry->hasFlag('failed_prelim')) { + $entry->rank = 'Failed Prelim'; + } elseif ($entry->hasFlag('declined')) { $entry->rank = 'Declined'; } elseif ($entry->hasFlag('no_show')) { $entry->rank = 'No Show'; - } elseif ($entry->hasFlag('failed_prelim')) { - $entry->rank = 'Failed Prelim'; } } diff --git a/app/Http/Controllers/Tabulation/SeatAuditionFormController.php b/app/Http/Controllers/Tabulation/SeatAuditionFormController.php index 028e649..e2c5b4e 100644 --- a/app/Http/Controllers/Tabulation/SeatAuditionFormController.php +++ b/app/Http/Controllers/Tabulation/SeatAuditionFormController.php @@ -139,6 +139,9 @@ class SeatAuditionFormController extends Controller if ($entry->hasFlag('no_show')) { return true; } + if ($entry->hasFlag('failed_prelim')) { + return true; + } return false; });