mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-09-19 18:21:00 +02:00
Fixed total WorldTimes returned by db limited to a single world.
This commit is contained in:
parent
4c78bb9271
commit
e14e7aeda7
@ -179,7 +179,8 @@ public class WorldTimesTable extends UserIDTable {
|
|||||||
" FROM " + tableName +
|
" FROM " + tableName +
|
||||||
" JOIN " + worldTable + " on " + worldIDColumn + "=" + columnWorldId +
|
" JOIN " + worldTable + " on " + worldIDColumn + "=" + columnWorldId +
|
||||||
" JOIN " + sessionsTable + " on " + sessionIDColumn + "=" + columnSessionID +
|
" JOIN " + sessionsTable + " on " + sessionIDColumn + "=" + columnSessionID +
|
||||||
" WHERE " + sessionServerIDColumn + "=" + db.getServerTable().statementSelectServerID
|
" WHERE " + sessionServerIDColumn + "=" + db.getServerTable().statementSelectServerID +
|
||||||
|
" GROUP BY " + columnWorldId
|
||||||
);
|
);
|
||||||
statement.setString(1, serverUUID.toString());
|
statement.setString(1, serverUUID.toString());
|
||||||
set = statement.executeQuery();
|
set = statement.executeQuery();
|
||||||
@ -219,7 +220,8 @@ public class WorldTimesTable extends UserIDTable {
|
|||||||
worldNameColumn +
|
worldNameColumn +
|
||||||
" FROM " + tableName +
|
" FROM " + tableName +
|
||||||
" JOIN " + worldTable + " on " + worldIDColumn + "=" + columnWorldId +
|
" JOIN " + worldTable + " on " + worldIDColumn + "=" + columnWorldId +
|
||||||
" WHERE " + columnUserID + "=" + usersTable.statementSelectID
|
" WHERE " + columnUserID + "=" + usersTable.statementSelectID +
|
||||||
|
" GROUP BY " + columnWorldId
|
||||||
);
|
);
|
||||||
statement.setString(1, uuid.toString());
|
statement.setString(1, uuid.toString());
|
||||||
set = statement.executeQuery();
|
set = statement.executeQuery();
|
||||||
|
Loading…
Reference in New Issue
Block a user