testing
This commit is contained in:
parent
fd586d30f7
commit
0d10e2047b
@ -58,7 +58,7 @@ class TabulateWinners extends Command
|
|||||||
->first();
|
->first();
|
||||||
return $mainWinnerQuery->vehicle;
|
return $mainWinnerQuery->vehicle;
|
||||||
}
|
}
|
||||||
function categoryWinner($category)
|
/* function categoryWinner($category)
|
||||||
{
|
{
|
||||||
$categoryWinnerQuery = VehicleScores::join('vehicles', 'vehicle_scores.vehicle', '=', 'vehicles.id')
|
$categoryWinnerQuery = VehicleScores::join('vehicles', 'vehicle_scores.vehicle', '=', 'vehicles.id')
|
||||||
->groupBy('vehicles.id')
|
->groupBy('vehicles.id')
|
||||||
@ -66,14 +66,14 @@ class TabulateWinners extends Command
|
|||||||
->whereNotIn('vehicle_scores.vehicle', function ($query) {
|
->whereNotIn('vehicle_scores.vehicle', function ($query) {
|
||||||
$query->select('vehicle')->from('car_show_winners');
|
$query->select('vehicle')->from('car_show_winners');
|
||||||
})
|
})
|
||||||
//->where('vehicles.doNotJudge', '=', "0")
|
//->where('vehicles.doNotJudge', '=', 0)
|
||||||
//->where('vehicles.type', '=', "$category")
|
//->where('vehicles.type', '=', "$category")
|
||||||
->orderBy('totalscore', 'desc')
|
->orderBy('totalscore', 'desc')
|
||||||
->first();
|
->first();
|
||||||
return $categoryWinnerQuery->vehicle;
|
return $categoryWinnerQuery->vehicle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*/
|
||||||
function pcWinner()
|
function pcWinner()
|
||||||
{
|
{
|
||||||
$peoplesChoiceWinnerQuery = DB::table('peoples_choice')
|
$peoplesChoiceWinnerQuery = DB::table('peoples_choice')
|
||||||
|
Loading…
Reference in New Issue
Block a user