mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-19 02:29:58 +00:00
pass double points received from score correction provider on to backend instead of coercing to int
This commit is contained in:
1 parent
5dc814925b
commit
24de5865fb
1 file changed
+1
-1
+1
-1
@@ -258,7 +258,7 @@ public class MatchAndApplyScoreCorrectionsDialog extends DataEntryDialog<BulkSco
|
||||
if (officialCorrectionEntry.getScore() != null) {
|
||||
double officialTotalPoints = officialCorrectionEntry.getScore().doubleValue();
|
||||
double officialNetPoints = raceColumn.isMedalRace() ? officialTotalPoints / MEDAL_RACE_FACTOR : officialTotalPoints;
|
||||
result.addScoreUpdate(competitor, raceColumn, (int) Math.round(officialNetPoints));
|
||||
result.addScoreUpdate(competitor, raceColumn, officialNetPoints);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user