Fix generation bug
This commit is contained in:
parent
c36c2ab990
commit
43e2d21ebc
1 changed files with 1 additions and 2 deletions
|
@ -208,7 +208,6 @@ public class IndexBatchCreator {
|
|||
data.cityAdminLevel = ncountry.getAttribute("cityAdminLevel");
|
||||
if(name != null && !Boolean.parseBoolean(ncountry.getAttribute("skip"))){
|
||||
countries.regionNames.put(name, data);
|
||||
log.info(" Country : " +name);
|
||||
}
|
||||
}
|
||||
countriesToDownload.add(countries);
|
||||
|
@ -255,7 +254,7 @@ public class IndexBatchCreator {
|
|||
|
||||
public void runBatch(List<RegionCountries> countriesToDownload ){
|
||||
Set<String> alreadyGeneratedFiles = new LinkedHashSet<String>();
|
||||
if(countriesToDownload.isEmpty()){
|
||||
if(!countriesToDownload.isEmpty()){
|
||||
downloadFilesAndGenerateIndex(countriesToDownload, alreadyGeneratedFiles);
|
||||
}
|
||||
generatedIndexes(alreadyGeneratedFiles);
|
||||
|
|
Loading…
Reference in a new issue