mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-01 18:53:16 +00:00
Add checks back
This commit is contained in:
parent
983172bc0a
commit
6d771819f4
1 changed files with 4 additions and 4 deletions
|
@ -41,10 +41,10 @@ class ImportCities extends Command
|
||||||
$this->error('Missing storage/app/cities.json file!');
|
$this->error('Missing storage/app/cities.json file!');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// if (Place::count() > 10) {
|
if (Place::count() > 10) {
|
||||||
// $this->error('Cities already imported, aborting operation...');
|
$this->error('Cities already imported, aborting operation...');
|
||||||
// return;
|
return;
|
||||||
// }
|
}
|
||||||
$this->info('Importing city data into database ...');
|
$this->info('Importing city data into database ...');
|
||||||
$cities = file_get_contents($path);
|
$cities = file_get_contents($path);
|
||||||
$cities = json_decode($cities);
|
$cities = json_decode($cities);
|
||||||
|
|
Loading…
Reference in a new issue