Fixed player sorting for /server page

- Now all most recent players should be visible
This commit is contained in:
Rsl1122 2019-08-26 10:35:02 +03:00
parent 0605adcbab
commit 97ff014f17
2 changed files with 2 additions and 2 deletions

View File

@ -21,6 +21,7 @@ import com.djrapitops.plan.data.container.GeoInfo;
import com.djrapitops.plan.data.container.Session;
import com.djrapitops.plan.data.store.containers.PlayerContainer;
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.access.Query;
import com.djrapitops.plan.db.access.queries.objects.BaseUserQueries;
@ -75,6 +76,7 @@ public class ServerPlayersTableContainersQuery implements Query<List<PlayerConta
return playerSessions;
}
);
container.putCachingSupplier(PlayerKeys.LAST_SEEN, () -> SessionsMutator.forContainer(container).toLastSeen());
containers.add(container);
}

View File

@ -67,8 +67,6 @@ public class PlayersTableJSONParser {
) {
// Data
this.players = players;
this.players.sort(new PlayerContainerLastPlayedComparator());
this.extensionData = extensionData;
extensionDescriptives = new ArrayList<>();