Skip to content
Snippets Groups Projects
Commit 04eef8b2 authored by treinar's avatar treinar
Browse files

Fixing deserialization of Weather data

parent 1a866e6c
No related branches found
No related tags found
No related merge requests found
......@@ -275,10 +275,7 @@ public class NaerstadModel extends I18nImpl implements Model{
initCollections();
ObjectMapper mapper = new ObjectMapper();
//List<WeatherObservation> observations = mapper.convertValue(config.getConfigParameter("observations"), new TypeReference<List<WeatherObservation>>(){});
List<WeatherObservation> observations = (List<WeatherObservation>) config.getConfigParameter("observations");
List<WeatherObservation> observations = this.modelUtil.extractWeatherObservationList(config.getConfigParameter("observations"));
for(WeatherObservation o:observations)
{
switch(o.getElementMeasurementTypeId())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment