Skip to content

Commit

Permalink
places-setup: fix output
Browse files Browse the repository at this point in the history
Signed-off-by: Varun Patil <[email protected]>
  • Loading branch information
pulsejet committed Oct 10, 2023
1 parent 7b647dc commit 08e75fb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Command/PlacesSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
// Recalculate all places
$this->places->recalculateAll();

$this->output->writeln('Done');
$this->output->writeln('Places set up successfully');

return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Controller/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public function placesSetup(?string $actiontoken): Http\Response
$places->importPlanet($datafile);
$places->recalculateAll();

$out->setOutput("Done.\n");
$out->setOutput("Places set up successfully.\n");
} catch (\Exception $e) {
$out->setOutput('Failed: '.$e->getMessage()."\n");
}
Expand Down
1 change: 0 additions & 1 deletion lib/Service/Places.php
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,6 @@ public function importPlanet(string $datafile): void

// Mark success
echo "Planet database imported successfully!\n";
echo "You should re-index your library now.\n";
flush();
$this->config->setSystemValue('memories.gis_type', $gis);

Expand Down

0 comments on commit 08e75fb

Please sign in to comment.