Fixed groups appearing multiple times on players table

This commit is contained in:
Rsl1122 2019-09-21 10:52:56 +03:00
parent 59022774b6
commit dfbfb99b2d

View File

@ -78,7 +78,7 @@ public class ExtensionServerPlayerDataTableQuery implements Query<Map<UUID, Exte
SessionsTable.TABLE_NAME + '.' + SessionsTable.USER_UUID +
",MAX(" + SessionsTable.SESSION_END + ") as last_seen" +
FROM + SessionsTable.TABLE_NAME +
GROUP_BY + SessionsTable.TABLE_NAME + '.' + SessionsTable.USER_UUID + ',' + SessionsTable.SESSION_END +
GROUP_BY + SessionsTable.TABLE_NAME + '.' + SessionsTable.USER_UUID +
ORDER_BY + SessionsTable.SESSION_END + " DESC LIMIT ?";
String sql = SELECT +
@ -125,7 +125,7 @@ public class ExtensionServerPlayerDataTableQuery implements Query<Map<UUID, Exte
SessionsTable.TABLE_NAME + '.' + SessionsTable.USER_UUID +
",MAX(" + SessionsTable.SESSION_END + ") as last_seen" +
FROM + SessionsTable.TABLE_NAME +
GROUP_BY + SessionsTable.TABLE_NAME + '.' + SessionsTable.USER_UUID + ',' + SessionsTable.SESSION_END +
GROUP_BY + SessionsTable.TABLE_NAME + '.' + SessionsTable.USER_UUID +
ORDER_BY + SessionsTable.SESSION_END + " DESC LIMIT ?";
String sql = SELECT +