There was an error while loading. Please reload this page.
2 parents 573c109 + 8faf2dc commit e8c9879Copy full SHA for e8c9879
1 file changed
src/main/java/org/bytefight/webserver/glicko/domain/dto/TeamGlickoHistoryDto.java
@@ -25,6 +25,12 @@ public static TeamGlickoHistoryDto from(
25
List<Long> timestamps = new ArrayList<>(histories.size());
26
List<Double> glickos = new ArrayList<>(histories.size());
27
28
+ if(!histories.isEmpty()) {
29
+ TeamGlickoHistory initial = histories.get(0);
30
+ timestamps.add(team.getCreatedAt().getEpochSecond());
31
+ glickos.add(initial.getOldGlicko());
32
+ }
33
+
34
for (TeamGlickoHistory h : histories) {
35
timestamps.add(h.getCreatedAt().getEpochSecond());
36
glickos.add(h.getNewGlicko());
0 commit comments