mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-16 01:01:02 +00:00
# simplified the creation of a RaceState
# added a temp method to set the start time via regattaoverview
This commit is contained in:
1 parent
0ee49f5af1
commit
54fe07eb68
19 files changed
+232
-76
No files matched your search
+1
-1
@@ -129,7 +129,7 @@ public class EventRaceStatesJsonGetServlet extends AbstractJsonHttpServlet {
|
||||
RaceLog raceLog = raceColumn.getRaceLog(fleet);
|
||||
if (raceLog != null && !raceLog.isEmpty()) {
|
||||
|
||||
ReadonlyRaceState state = new ReadonlyRaceStateImpl(raceLog, null);
|
||||
ReadonlyRaceState state = ReadonlyRaceStateImpl.create(raceLog);
|
||||
RaceLogRaceStatus status = state.getStatus();
|
||||
TimePoint startTime = state.getStartTime();
|
||||
TimePoint finishedTime = state.getFinishedTime();
|
||||
|
||||
Reference in new issue
Block a user