Resolve "Make script to get file from Azure storage" #1462

Closed
korina.cordero wants to merge 48 commits from 549-make-script-to-get-file-from-azure-storage into master
2 changed files with 3 additions and 13 deletions
Showing only changes of commit 50f5896014 - Show all commits

View file

@ -1090,12 +1090,6 @@ class APIController extends Controller implements LoggedController
// break out of loop // break out of loop
break; break;
} }
else
{
// log hub into hub_filter_log
$hub_filter_logger->logFilteredHub($nearest_hub['hub'], 'no_available_rider');
// continue to go through list to find hub with an available rider
}
} }
} }
@ -2634,12 +2628,6 @@ class APIController extends Controller implements LoggedController
// break out of loop // break out of loop
break; break;
} }
else
{
// log hub into hub_filter_log
$hub_filter_logger->logFilteredHub($nearest_hub['hub'], 'no_available_rider');
// continue to go through list to find hub with an available rider
}
} }
} }
} }

View file

@ -219,9 +219,11 @@ class HubSelector
foreach ($riders as $rider) foreach ($riders as $rider)
{ {
if ($rider->isAvailable()) if ($rider->isAvailable())
$avail_rider_count = $avail_rider_count +1; $avail_rider_count = $avail_rider_count + 1;
} }
error_log('HUB ' . $hub->getID() . ' RIDER COUNT' . $avail_rider_count);
if ($avail_rider_count > 0) if ($avail_rider_count > 0)
$results[] = [ $results[] = [
'hub' => $hub, 'hub' => $hub,