Skip to content
Snippets Groups Projects
Commit c0955d86 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Fix input data error

parent 51460b6d
No related branches found
No related tags found
No related merge requests found
...@@ -443,7 +443,7 @@ public class ObservationService { ...@@ -443,7 +443,7 @@ public class ObservationService {
@QueryParam("cropCategoryId") List<Integer> cropCategoryId, @QueryParam("cropCategoryId") List<Integer> cropCategoryId,
@QueryParam("from") String fromStr, @QueryParam("from") String fromStr,
@QueryParam("to") String toStr, @QueryParam("to") String toStr,
@QueryParam("to") Boolean isPositive @QueryParam("isPositive") Boolean isPositive
) )
{ {
...@@ -458,16 +458,16 @@ public class ObservationService { ...@@ -458,16 +458,16 @@ public class ObservationService {
} }
catch(ParseException ex){ System.out.println("ERROR");} catch(ParseException ex){ System.out.println("ERROR");}
List<Observation> filteredObservations = observationBean.getFilteredObservations( List<Observation> filteredObservations = this.getFilteredObservationsFromBackend(
organizationId, organizationId,
pestId, pestId,
cropId, cropId,
cropCategoryId, cropCategoryId,
from, fromStr,
to, toStr,
isPositive isPositive
); );
GISEntityUtil gisUtil = new GISEntityUtil(); GISEntityUtil gisUtil = new GISEntityUtil();
return Response.ok().entity(gisUtil.getGeoJSONFromObservations(filteredObservations)).build(); return Response.ok().entity(gisUtil.getGeoJSONFromObservations(filteredObservations)).build();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment