Fix bug in hub rider slots initialization #403

This commit is contained in:
Kendrick Chan 2020-05-09 21:10:44 +08:00
parent 921a7180c8
commit c64a78c4b5

View file

@ -3049,7 +3049,7 @@ class APIController extends Controller implements LoggedController
$third_date => $third_date,
];
// initialize hub slots
// initialize hub rider slots
$hub_rider_slots = [];
foreach ($days as $day)
{
@ -3059,9 +3059,6 @@ class APIController extends Controller implements LoggedController
}
}
// array of # of riders that can handle JOs in a timeslot
$hub_rider_slots = [];
// check each JO's date_schedule, decrement rider_slots if date schedule falls in that slot
foreach ($jos_advance_orders as $jo)
{