mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-13 22:15:26 +00:00
use setFleetsCanRunInParallelToTrue() if flight multiplier >1 has been used
Change-Id: I5e625dd2f1cb01ae1e545c5ef85dcf060363f022
This commit is contained in:
1 parent
03e6597f1e
commit
0ff69ca02f
1 file changed
+8
+8
@@ -271,6 +271,7 @@ import com.sap.sailing.domain.racelogtracking.RaceLogTrackingAdapterFactory;
|
||||
import com.sap.sailing.domain.racelogtracking.impl.DeviceMappingImpl;
|
||||
import com.sap.sailing.domain.ranking.RankingMetric.RankingInfo;
|
||||
import com.sap.sailing.domain.regattalike.HasRegattaLike;
|
||||
import com.sap.sailing.domain.regattalike.IsRegattaLike;
|
||||
import com.sap.sailing.domain.regattalike.LeaderboardThatHasRegattaLike;
|
||||
import com.sap.sailing.domain.regattalog.RegattaLogStore;
|
||||
import com.sap.sailing.domain.swisstimingadapter.StartList;
|
||||
@@ -6918,6 +6919,13 @@ public class SailingServiceImpl extends ProxiedRemoteServiceServlet implements S
|
||||
}
|
||||
}
|
||||
}
|
||||
if (leaderboard instanceof LeaderboardThatHasRegattaLike && flightMultiplier > 1) {
|
||||
final IsRegattaLike regattaLike = ((LeaderboardThatHasRegattaLike) leaderboard).getRegattaLike();
|
||||
logger.info("Updating regatta "+regattaLike.getRegattaLikeIdentifier().getName()+
|
||||
", setting flag that fleets can run in parallel because a pairing list with flight multiplier "+
|
||||
flightMultiplier+" has been used.");
|
||||
regattaLike.setFleetsCanRunInParallelToTrue();
|
||||
}
|
||||
}
|
||||
|
||||
public List<String> getRaceDisplayNamesFromLeaderboard(String leaderboardName,List<String> raceColumnNames) throws NotFoundException{
|
||||
|
||||
Reference in new issue
Block a user