mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-15 04:31:34 +01:00
Fixed PlayerTableCreator not calculating Playtime or Login times
This commit is contained in:
parent
02c86b75bb
commit
028fd180f9
@ -273,8 +273,6 @@ public class Analysis {
|
|||||||
activity.setRecentPlayersUUIDs(userInfo.stream().map(UserInfo::getUuid).collect(Collectors.toList()));
|
activity.setRecentPlayersUUIDs(userInfo.stream().map(UserInfo::getUuid).collect(Collectors.toList()));
|
||||||
activity.setRecentPlayers(userInfo.stream().map(UserInfo::getName).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()));
|
playerCount.addPlayers(userInfo.stream().map(UserInfo::getUuid).collect(Collectors.toSet()));
|
||||||
|
|
||||||
Map<UUID, Long> registered = userInfo.stream().collect(Collectors.toMap(UserInfo::getUuid, UserInfo::getRegistered));
|
Map<UUID, Long> registered = userInfo.stream().collect(Collectors.toMap(UserInfo::getUuid, UserInfo::getRegistered));
|
||||||
@ -288,6 +286,8 @@ public class Analysis {
|
|||||||
joinInfo.addActiveSessions(activeSessions);
|
joinInfo.addActiveSessions(activeSessions);
|
||||||
joinInfo.addSessions(sessions);
|
joinInfo.addSessions(sessions);
|
||||||
|
|
||||||
|
analysisData.setPlayersTable(PlayersTableCreator.createSortablePlayersTable(userInfo, joinInfo, geolocPart));
|
||||||
|
|
||||||
Map<UUID, List<PlayerKill>> playerKills = db.getKillsTable().getPlayerKills();
|
Map<UUID, List<PlayerKill>> playerKills = db.getKillsTable().getPlayerKills();
|
||||||
killPart.addKills(playerKills);
|
killPart.addKills(playerKills);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user