mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-08 03:39:42 +01:00
Fixed player sorting for /server page
- Now all most recent players should be visible
This commit is contained in:
parent
0605adcbab
commit
97ff014f17
@ -21,6 +21,7 @@ import com.djrapitops.plan.data.container.GeoInfo;
|
|||||||
import com.djrapitops.plan.data.container.Session;
|
import com.djrapitops.plan.data.container.Session;
|
||||||
import com.djrapitops.plan.data.store.containers.PlayerContainer;
|
import com.djrapitops.plan.data.store.containers.PlayerContainer;
|
||||||
import com.djrapitops.plan.data.store.keys.PlayerKeys;
|
import com.djrapitops.plan.data.store.keys.PlayerKeys;
|
||||||
|
import com.djrapitops.plan.data.store.mutators.SessionsMutator;
|
||||||
import com.djrapitops.plan.db.SQLDB;
|
import com.djrapitops.plan.db.SQLDB;
|
||||||
import com.djrapitops.plan.db.access.Query;
|
import com.djrapitops.plan.db.access.Query;
|
||||||
import com.djrapitops.plan.db.access.queries.objects.BaseUserQueries;
|
import com.djrapitops.plan.db.access.queries.objects.BaseUserQueries;
|
||||||
@ -75,6 +76,7 @@ public class ServerPlayersTableContainersQuery implements Query<List<PlayerConta
|
|||||||
return playerSessions;
|
return playerSessions;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
container.putCachingSupplier(PlayerKeys.LAST_SEEN, () -> SessionsMutator.forContainer(container).toLastSeen());
|
||||||
|
|
||||||
containers.add(container);
|
containers.add(container);
|
||||||
}
|
}
|
||||||
|
@ -67,8 +67,6 @@ public class PlayersTableJSONParser {
|
|||||||
) {
|
) {
|
||||||
// Data
|
// Data
|
||||||
this.players = players;
|
this.players = players;
|
||||||
this.players.sort(new PlayerContainerLastPlayedComparator());
|
|
||||||
|
|
||||||
this.extensionData = extensionData;
|
this.extensionData = extensionData;
|
||||||
|
|
||||||
extensionDescriptives = new ArrayList<>();
|
extensionDescriptives = new ArrayList<>();
|
||||||
|
Loading…
Reference in New Issue
Block a user