mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-11 14:50:56 +00:00
Added possibility to change the pass id - that enables setting a start time in the past
This commit is contained in:
1 parent
4238bd9345
commit
fdeb64bca4
6 files changed
+20
-5
No files matched your search
+3
@@ -2530,6 +2530,9 @@ public class RacingEventServiceImpl implements RacingEventServiceWithTestSupport
|
||||
RaceLog raceLog = getRaceLog(leaderboardName, raceColumnName, fleetName);
|
||||
if (raceLog != null) {
|
||||
RaceState state = RaceStateImpl.create(raceLog, new RaceLogEventAuthorImpl(authorName, authorPriority));
|
||||
if (passId > raceLog.getCurrentPassId()) {
|
||||
state.setAdvancePass(logicalTimePoint);
|
||||
}
|
||||
state.setRacingProcedure(logicalTimePoint, racingProcedure);
|
||||
state.forceNewStartTime(logicalTimePoint, startTime);
|
||||
return state.getStartTime();
|
||||
|
||||
Reference in new issue
Block a user