Skip to content
This repository has been archived by the owner on Mar 26, 2019. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
seustachi committed Dec 31, 2014
1 parent b2d1bf4 commit 8d83245
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class MetadataUpdater implements Runnable {
private CkanSynchronizerService ckanSynchronizerServiceImpl;

@Override
@Scheduled(fixedDelay = 100000, initialDelay = 1000)
@Scheduled(fixedDelay = 10000, initialDelay = 1000)
public void run() {
try {
log.debug("Starting MetadataUpdater.run");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,14 @@ private HdxPackageUpdateMetadataDTO convertDataSerieToCuratedDataset(final DataS
final Source source = dataSerieToCuratedDataset.getSource();

final HdxPackageUpdateMetadataDTO dto = new HdxPackageUpdateMetadataDTO();
dto.setId(dataSerieToCuratedDataset.getCkanDatasetId());
dto.setId(dataSerieToCuratedDataset.getCkanDatasetName());

if (dataSerieToCuratedDataset.getCkanDatasetId() != null && !dataSerieToCuratedDataset.getCkanDatasetId().isEmpty()) {
dto.setId(dataSerieToCuratedDataset.getCkanDatasetId());
}

if (dataSerieToCuratedDataset.getCkanDatasetName() != null && !dataSerieToCuratedDataset.getCkanDatasetName().isEmpty()) {
dto.setName(dataSerieToCuratedDataset.getCkanDatasetName());
}

final Map<String, Timestamp> minMaxDatesForDataSeries = curatedDataService.getMinMaxDatesForDataSeries(new DataSerie(indType.getCode(), source.getCode()));
final DateTimeFormatter customFormatter = DateTimeFormat.forPattern("MM/dd/YYYY");
Expand Down

0 comments on commit 8d83245

Please sign in to comment.