mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-10 18:37:57 +01:00
Fix Scatter & Length distribution graphs containing duplicate sessions
This commit is contained in:
parent
a218e509bf
commit
89ee1a7bc7
@ -2,15 +2,13 @@ package main.java.com.djrapitops.plan.data.analysis;
|
||||
|
||||
import com.djrapitops.plugin.api.TimeAmount;
|
||||
import com.djrapitops.plugin.utilities.Verify;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
import main.java.com.djrapitops.plan.data.SessionData;
|
||||
import main.java.com.djrapitops.plan.utilities.MiscUtils;
|
||||
import main.java.com.djrapitops.plan.utilities.analysis.AnalysisUtils;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* Part responsible for all Player login related analysis.
|
||||
*
|
||||
@ -109,6 +107,6 @@ public class JoinInfoPart extends RawData<JoinInfoPart> {
|
||||
public void addSessions(UUID uuid, List<SessionData> sessions) {
|
||||
Verify.nullCheck(uuid);
|
||||
Verify.nullCheck(sessions);
|
||||
this.sessions.put(uuid, sessions);
|
||||
this.sessions.put(uuid, sessions.stream().distinct().collect(Collectors.toList()));
|
||||
}
|
||||
}
|
||||
|
@ -661,8 +661,6 @@
|
||||
</div>
|
||||
</div>
|
||||
<canvas id="sessiondistribution" width="1000" height="600" style="width: 95%;"></canvas>
|
||||
<p>If the graph contains more sessions than login times, likely cause is use of /reload
|
||||
(Restarts sessions).</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -549,8 +549,6 @@
|
||||
</div>
|
||||
</div>
|
||||
<canvas id="sessiondistribution" width="1000" height="600" style="width: 95%;"></canvas>
|
||||
<p>If the graph contains more sessions than login times, likely cause is use of /reload
|
||||
(Restarts sessions).</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user