mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-15 06:49:56 +00:00
improved the condition for the consistency check
This commit is contained in:
1 parent
611fd71e2a
commit
6db8ab4050
1 file changed
+2
-1
+2
-1
@@ -797,7 +797,8 @@ public class DomainFactoryImpl implements DomainFactory {
|
||||
for (Leaderboard leaderboard: leaderboardGroup.getLeaderboards()) {
|
||||
if (leaderboard instanceof RegattaLeaderboard) {
|
||||
RegattaLeaderboard regattaLeaderboard = (RegattaLeaderboard) leaderboard;
|
||||
if (canBoatsOfCompetitorsChangePerRace != regattaLeaderboard.getRegatta().canBoatsOfCompetitorsChangePerRace()) {
|
||||
boolean hasTrackedRaces = Util.size(regattaLeaderboard.getTrackedRaces()) > 0;
|
||||
if (hasTrackedRaces && canBoatsOfCompetitorsChangePerRace != regattaLeaderboard.getRegatta().canBoatsOfCompetitorsChangePerRace()) {
|
||||
result = false;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user