mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-22 12:03:58 +00:00
as an aftermath to bug 3302 we can now determine a competitor's fleet also from the race log competitor assignments
This commit is contained in:
1 parent
cb635bc6ac
commit
72a149d7b1
1 file changed
+3
-3
+3
-3
@@ -120,9 +120,9 @@ public abstract class AbstractRaceColumn extends SimpleAbstractRaceColumn implem
|
||||
|
||||
@Override
|
||||
public Fleet getFleetOfCompetitor(Competitor competitor) {
|
||||
for (Map.Entry<Fleet, TrackedRace> e : trackedRaces.entrySet()) {
|
||||
if (Util.contains(e.getValue().getRace().getCompetitors(), competitor)) {
|
||||
return e.getKey();
|
||||
for (final Fleet fleet : getFleets()) {
|
||||
if (Util.contains(getAllCompetitors(fleet), competitor)) {
|
||||
return fleet;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user