mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-08 21:30:57 +00:00
fixed MaxPointsReason comparison error in RaceColumn.render, switching from string to enum
This commit is contained in:
1 parent
55eaa668af
commit
8c94b35693
3 files changed
+19
-1
No files matched your search
@@ -0,0 +1,13 @@
|
||||
package com.sap.sailing.domain.base;
|
||||
|
||||
/**
|
||||
* An event is a group of {@link Regatta regattas} carried out at a common venue within a common time frame. For
|
||||
* example, Kiel Week is an event, and the International German Championship held, e.g., in Travemünde, is an event,
|
||||
* too.
|
||||
*
|
||||
* @author Axel Uhl (D043530)
|
||||
*
|
||||
*/
|
||||
public interface Event {
|
||||
Iterable<Regatta> getRegattas();
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package com.sap.sailing.domain.base;
|
||||
|
||||
public interface Round {
|
||||
|
||||
}
|
||||
+1
-1
@@ -452,7 +452,7 @@ public class LeaderboardPanel extends FormPanel implements TimeListener, PlaySta
|
||||
LeaderboardEntryDTO entry = object.fieldsByRaceName.get(getRaceColumnName());
|
||||
if (entry != null) {
|
||||
// don't show points if max points / penalty
|
||||
if (entry.reasonForMaxPoints.equals("NONE")) {
|
||||
if (entry.reasonForMaxPoints == null || entry.reasonForMaxPoints == MaxPointsReason.NONE) {
|
||||
if (!entry.discarded) {
|
||||
html.appendHtmlConstant("<span style=\"font-weight: bold;\">");
|
||||
html.appendHtmlConstant(entry.totalPoints == 0 ? "" : ""+entry.totalPoints);
|
||||
|
||||
Reference in new issue
Block a user