mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 09:18:54 +00:00
Remove newline from update_groups scripts
This commit is contained in:
@@ -19,13 +19,13 @@ if ($nntp->doConnect() !== true) {
|
||||
exit(ColorCLI::error('Unable to connect to usenet.'));
|
||||
}
|
||||
|
||||
ColorCLI::doEcho(ColorCLI::header('Getting first/last for all your active groups.'), true);
|
||||
ColorCLI::doEcho(ColorCLI::header('Getting first/last for all your active groups.'));
|
||||
$data = $nntp->getGroups();
|
||||
if ($nntp->isError($data)) {
|
||||
exit(ColorCLI::error('Failed to getGroups() from nntp server.'));
|
||||
}
|
||||
|
||||
ColorCLI::doEcho(ColorCLI::header('Inserting new values into short_groups table.'), true);
|
||||
ColorCLI::doEcho(ColorCLI::header('Inserting new values into short_groups table.'));
|
||||
|
||||
DB::unprepared('TRUNCATE TABLE short_groups');
|
||||
DB::commit();
|
||||
@@ -43,10 +43,10 @@ foreach ($data as $newgroup) {
|
||||
'updated' => Carbon::now(),
|
||||
]
|
||||
);
|
||||
ColorCLI::doEcho(ColorCLI::primary('Updated '.$newgroup['group']), true);
|
||||
ColorCLI::doEcho(ColorCLI::primary('Updated '.$newgroup['group']));
|
||||
}
|
||||
}
|
||||
ColorCLI::doEcho(ColorCLI::header('Running time: '.$consoleTools->convertTimer(time() - $start)), true);
|
||||
ColorCLI::doEcho(ColorCLI::header('Running time: '.$consoleTools->convertTimer(time() - $start)));
|
||||
|
||||
function myInArray($array, $value, $key)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user