fix: [shell] Update updateWarningLists from CLI

pull/5230/head
Jakub Onderka 2019-09-27 14:18:35 +02:00 committed by GitHub
parent d0b99bebda
commit bd9d65a2a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 7 deletions

View File

@ -159,13 +159,12 @@ class AdminShell extends AppShell
}
}
public function updateWarningLists() {
$result = $this->Galaxy->update();
if ($result) {
echo 'Warning lists updated' . PHP_EOL;
} else {
echo 'Could not update warning lists' . PHP_EOL;
}
public function updateWarningLists()
{
$result = $this->Warninglist->update();
$success = count($result['success']);
$fails = count($result['fails']);
echo "$success warninglists updated, $fails fails" . PHP_EOL;
}
public function updateNoticeLists() {