From 4bdf14de83443556081e455c680f113a41abfb02 Mon Sep 17 00:00:00 2001 From: Russ Long Date: Wed, 8 May 2024 19:09:44 -0400 Subject: [PATCH] fix typo --- app/Console/Commands/TabulateWinners.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/Console/Commands/TabulateWinners.php b/app/Console/Commands/TabulateWinners.php index 928dd5b..ddac3a9 100644 --- a/app/Console/Commands/TabulateWinners.php +++ b/app/Console/Commands/TabulateWinners.php @@ -118,20 +118,20 @@ class TabulateWinners extends Command return $zeroTo43Query->vehicle; } - function fortyThreeToSixtySevenWinner() + function fortyThreeToSixtyEightWinner() { - $fortyThreeToSixtySevenQuery = VehicleScores::join('vehicles', 'vehicle_scores.vehicle', '=', 'vehicles.id') + $fortyThreeToSixtyEightQuery = VehicleScores::join('vehicles', 'vehicle_scores.vehicle', '=', 'vehicles.id') ->groupBy('vehicles.id') ->selectRaw('*, sum(vehicle_scores.overall_score) as totalscore') ->whereNotIn('vehicle_scores.vehicle', function($query){ $query->select('vehicle')->from('car_show_winners'); }) ->where('vehicles.year', '>=', 1943) - ->where('vehicles.year', '<=', 1967) + ->where('vehicles.year', '<=', 1968) ->where('vehicles.doNotJudge', '=', 0) ->orderBy('totalscore','desc') ->first(); - return $fortyThreeToSixtySevenQuery->vehicle; + return $fortyThreeToSixtyEightQuery->vehicle; } function sixtyEightToNinetyEightWinner() @@ -226,7 +226,7 @@ class TabulateWinners extends Command 'place' => 'first' ], [ - 'vehicle' => fortyThreeToSixtySevenWinner() + 'vehicle' => fortyThreeToSixtyEightWinner() ] ); CarShowWinner::updateOrCreate( @@ -235,7 +235,7 @@ class TabulateWinners extends Command 'place' => 'second' ], [ - 'vehicle' => fortyThreeToSixtySevenWinner() + 'vehicle' => fortyThreeToSixtyEightWinner() ] ); CarShowWinner::updateOrCreate( @@ -244,7 +244,7 @@ class TabulateWinners extends Command 'place' => 'third' ], [ - 'vehicle' => fortyThreeToSixtySevenWinner() + 'vehicle' => fortyThreeToSixtyEightWinner() ] );