mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-02-04 06:21:43 +01:00
Drilldown Module to server.html to fix WorldPie
This commit is contained in:
parent
d1de63db19
commit
feeded7359
@ -141,8 +141,7 @@ public class JoinInfoPart extends RawData {
|
||||
}
|
||||
|
||||
public void addSessions(Map<UUID, List<Session>> sessions) {
|
||||
Verify.nullCheck(sessions);
|
||||
this.sessions.putAll(sessions);
|
||||
this.sessions.putAll(Verify.nullCheck(sessions));
|
||||
}
|
||||
|
||||
public void addSessions(UUID uuid, List<Session> sessions) {
|
||||
|
@ -450,6 +450,7 @@ public class SessionsTable extends UserIDTable {
|
||||
return getSessionInfoOfServer(Plan.getServerUUID());
|
||||
}
|
||||
|
||||
// TODO Write tests for this method
|
||||
public Map<UUID, List<Session>> getSessionInfoOfServer(UUID serverUUID) throws SQLException {
|
||||
Optional<Integer> id = serverTable.getServerID(serverUUID);
|
||||
if (!id.isPresent()) {
|
||||
@ -494,6 +495,7 @@ public class SessionsTable extends UserIDTable {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO Write tests for this method
|
||||
public long getLastSeen(UUID uuid) throws SQLException {
|
||||
PreparedStatement statement = null;
|
||||
ResultSet set = null;
|
||||
@ -514,6 +516,7 @@ public class SessionsTable extends UserIDTable {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO Write tests for this method
|
||||
public Map<UUID, Long> getLastSeenForAllPlayers() throws SQLException {
|
||||
PreparedStatement statement = null;
|
||||
ResultSet set = null;
|
||||
|
@ -82,12 +82,12 @@
|
||||
</p>
|
||||
</div>
|
||||
<div class="column">
|
||||
<p><b>Averages:</b>
|
||||
<p><b>Averages:</b><br>
|
||||
• Session Length: ${sessionAverage}<br>
|
||||
• Players / Day: ${playersAverage}<br>
|
||||
• New Players / Day: ${playersNewAverage}<br>
|
||||
<br>
|
||||
<b>Total:</b>
|
||||
<b>Total:</b><br>
|
||||
• Playtime: ${playtimeTotal}<br>
|
||||
• Sessions: ${sessionCount}<br>
|
||||
• Kills: ${killCount}<br>
|
||||
@ -338,6 +338,7 @@
|
||||
<script src="https://code.highcharts.com/stock/highstock.js"></script>
|
||||
<script src="https://code.highcharts.com/maps/modules/map.js"></script>
|
||||
<script src="https://code.highcharts.com/mapdata/custom/world.js"></script>
|
||||
<script src="https://code.highcharts.com/modules/drilldown.js"></script>
|
||||
<script src="https://code.highcharts.com/modules/no-data-to-display.js"></script>
|
||||
<script src="./js/activityPie.js"></script>
|
||||
<script src="./js/playerGraph.js"></script>
|
||||
|
Loading…
Reference in New Issue
Block a user