mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-03 01:10:17 +01:00
Revert attempt to fix duplicate players on Players table
This commit is contained in:
parent
146c990eb6
commit
59022774b6
@ -67,7 +67,7 @@ public class NetworkTablePlayersQuery implements Query<List<TablePlayer>> {
|
||||
GROUP_BY + GeoInfoTable.USER_UUID;
|
||||
String selectLatestGeolocations = SELECT +
|
||||
"g1." + GeoInfoTable.GEOLOCATION + ',' +
|
||||
DISTINCT + "g1." + GeoInfoTable.USER_UUID +
|
||||
"g1." + GeoInfoTable.USER_UUID +
|
||||
FROM + "(" + selectGeolocations + ") AS g1" +
|
||||
INNER_JOIN + "(" + selectLatestGeolocationDate + ") AS g2 ON g1.uuid = g2.uuid" +
|
||||
WHERE + GeoInfoTable.LAST_USED + "=last_used_g";
|
||||
@ -79,12 +79,12 @@ public class NetworkTablePlayersQuery implements Query<List<TablePlayer>> {
|
||||
FROM + SessionsTable.TABLE_NAME + " s" +
|
||||
GROUP_BY + "s." + SessionsTable.USER_UUID;
|
||||
|
||||
String selectBanned = SELECT + DISTINCT + "ub." + UserInfoTable.USER_UUID +
|
||||
String selectBanned = SELECT + "ub." + UserInfoTable.USER_UUID +
|
||||
FROM + UserInfoTable.TABLE_NAME + " ub" +
|
||||
WHERE + UserInfoTable.BANNED + "=?";
|
||||
|
||||
String selectBaseUsers = SELECT +
|
||||
DISTINCT + "u." + UsersTable.USER_UUID + ',' +
|
||||
"u." + UsersTable.USER_UUID + ',' +
|
||||
"u." + UsersTable.USER_NAME + ',' +
|
||||
"u." + UsersTable.REGISTERED + ',' +
|
||||
"ban." + UserInfoTable.USER_UUID + " as banned," +
|
||||
|
Loading…
Reference in New Issue
Block a user