mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-10 21:02:40 +00:00
Bugfix for JsonSerializer for complete maneuver curves with estimation
data
This commit is contained in:
1 parent
085ac58ba0
commit
145065904c
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -49,7 +49,7 @@ public class CompleteManeuverCurvesWithEstimationDataJsonSerializer extends Abst
|
||||
}
|
||||
forCompetitorJson.put(MANEUVER_CURVES, completeManeuverCurvesWithEstimationData);
|
||||
Duration averageIntervalBetweenFixes = trackedRace.getTrack(competitor).getAverageIntervalBetweenFixes();
|
||||
forCompetitorJson.put(AVG_INTERVAL_BETWEEN_FIXES_IN_SECONDS, averageIntervalBetweenFixes.asSeconds());
|
||||
forCompetitorJson.put(AVG_INTERVAL_BETWEEN_FIXES_IN_SECONDS, averageIntervalBetweenFixes == null ? 0 : averageIntervalBetweenFixes.asSeconds());
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
+1
-1
@@ -1028,7 +1028,7 @@ public class RegattasResource extends AbstractSailingServerResource {
|
||||
@GET
|
||||
@Produces("application/json;charset=UTF-8")
|
||||
@Path("{regattaname}/races/{racename}/completeManeuverCurvesWithEstimationData")
|
||||
public Response getManeuversWithEstimationData(@PathParam("regattaname") String regattaName,
|
||||
public Response getCompleteManeuverCurvesWithEstimationData(@PathParam("regattaname") String regattaName,
|
||||
@PathParam("racename") String raceName) {
|
||||
Response response;
|
||||
Regatta regatta = findRegattaByName(regattaName);
|
||||
|
||||
Reference in new issue
Block a user