There was an error while loading. Please reload this page.
1 parent 97f4dc1 commit 8faf2dcCopy full SHA for 8faf2dc
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