This commit is contained in:
Russ Long 2020-02-08 15:25:40 -05:00
parent 825a192581
commit 8604d3b9f5

View File

@ -183,8 +183,8 @@ class TabulateWinners extends Command
->whereNotIn('vehicle_scores.vehicle', function ($query) {
$query->select('vehicle')->from('car_show_winners');
})
//->where('vehicles.doNotJudge', '=', 0)
//->where('vehicles.type', '=', "$category")
->where('vehicles.doNotJudge', '=', 0)
->where('vehicles.type', '=', "$category")
->orderBy('totalscore', 'desc')
->first();
return $categoryWinnerQuery->vehicle;