Скрываем логи
This commit is contained in:
@ -43,7 +43,7 @@ $orgs = ContingentManager::getInstance()->getOrgs($dbOpendata);
|
||||
// }
|
||||
// }
|
||||
|
||||
$start = 91;
|
||||
$start = 999;
|
||||
|
||||
for ($i = $start; $i < count($sites); $i++) {
|
||||
// Нет URL сайта вуза
|
||||
@ -81,6 +81,11 @@ for ($i = $start; $i < count($sites); $i++) {
|
||||
echo $response->getStatusCode() .PHP_EOL;
|
||||
|
||||
$html = $response->getBody()->getContents();
|
||||
if (empty($html)) {
|
||||
$message = $sites[$i]['org_id'] . ' ' . $sites[$i]['site'];
|
||||
Logger::log($pathLogErrorHtml, $message);
|
||||
continue;
|
||||
}
|
||||
$parser = new ContingentParser($html, '//tr[@itemprop="eduChislen"]//');
|
||||
$contingent = $parser->getDataTable();
|
||||
|
||||
|
Reference in New Issue
Block a user