added waypoint ID in leg output for showrace

This commit is contained in:
Axel Uhl committed 2011-06-12 14:42:15 +02:00
1 parent 072726df77
commit a8eb81df8f
1 file changed
+2
@@ -219,7 +219,9 @@ public class ModeratorApp extends Servlet {
for (TrackedLeg leg : trackedRace.getTrackedLegs()) {
JSONObject jsonLeg = new JSONObject();
jsonLeg.put("from", leg.getLeg().getFrom().getName());
jsonLeg.put("fromwaypointid", leg.getLeg().getFrom().getId());
jsonLeg.put("to", leg.getLeg().getTo().getName());
jsonLeg.put("towaypointid", leg.getLeg().getTo().getId());
try {
jsonLeg.put("upordownwindleg", leg.isUpOrDownwindLeg(timePoint));
} catch (NoWindException e) {