From 21503c953dd76ba4fcba1864fc5378a926514bcd Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Wed, 30 Aug 2017 16:31:25 +0300 Subject: [PATCH] Analysis page now refreshed when analysis is run. --- .../main/java/com/djrapitops/plan/data/analysis/KillPart.java | 2 ++ .../java/com/djrapitops/plan/utilities/analysis/Analysis.java | 3 +++ 2 files changed, 5 insertions(+) diff --git a/Plan/src/main/java/com/djrapitops/plan/data/analysis/KillPart.java b/Plan/src/main/java/com/djrapitops/plan/data/analysis/KillPart.java index b554da22a..0e244d946 100644 --- a/Plan/src/main/java/com/djrapitops/plan/data/analysis/KillPart.java +++ b/Plan/src/main/java/com/djrapitops/plan/data/analysis/KillPart.java @@ -25,6 +25,8 @@ public class KillPart extends RawData { deaths = 0; } + // TODO JoinInfo Part, sessions for kills. + @Override public void analyse() { addValue("deathCount", deaths); diff --git a/Plan/src/main/java/com/djrapitops/plan/utilities/analysis/Analysis.java b/Plan/src/main/java/com/djrapitops/plan/utilities/analysis/Analysis.java index 037a3dd7d..72bcc6029 100644 --- a/Plan/src/main/java/com/djrapitops/plan/utilities/analysis/Analysis.java +++ b/Plan/src/main/java/com/djrapitops/plan/utilities/analysis/Analysis.java @@ -265,6 +265,9 @@ public class Analysis { } userInfo.sort(new UserInfoLastPlayedComparator()); + activity.setRecentPlayersUUIDs(userInfo.stream().map(UserInfo::getUuid).collect(Collectors.toList())); + activity.setRecentPlayers(userInfo.stream().map(UserInfo::getName).collect(Collectors.toList())); + analysisData.setPlayersTable(PlayersTableCreator.createSortablePlayersTable(userInfo, joinInfo, geolocPart)); playerCount.addPlayers(userInfo.stream().map(UserInfo::getUuid).collect(Collectors.toSet()));