From 7b0729381b508c7718008ab28daf10bcbbfcfb27 Mon Sep 17 00:00:00 2001 From: Matt Young Date: Sat, 2 Nov 2024 10:37:41 -0500 Subject: [PATCH] Add grade to export results --- app/Actions/Reports/GetExportData.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Actions/Reports/GetExportData.php b/app/Actions/Reports/GetExportData.php index a549699..1507179 100644 --- a/app/Actions/Reports/GetExportData.php +++ b/app/Actions/Reports/GetExportData.php @@ -23,7 +23,7 @@ class GetExportData // Audition, Rank, Name, School, Score, Flags or Seat $ranker = App::make(RankAuditionEntries::class); $exportRows = [ - 'Audition,Rank,Student Name,School,Score,Seat or Flag', + 'Audition,Rank,Student Name,School,Grade,Score,Seat or Flag', ]; $events = Event::all(); foreach ($events as $event) { @@ -36,6 +36,7 @@ class GetExportData $thisRow .= ','; $thisRow .= $entry->student->full_name().','; $thisRow .= $entry->student->school->name.','; + $thisRow .= $entry->student->grade.','; $thisRow .= $entry->score_totals[0] ?? ''; $thisRow .= ','; if ($entry->hasFlag('failed_prelim')) {