mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-03 06:57:36 +01:00
Make Query view affect ping data retrieved
All ping data was being used to create average. This allows comparing ping over time
This commit is contained in:
parent
7494902e46
commit
3ad5d577d4
@ -107,6 +107,8 @@ public class QueryTablePlayersQuery implements Query<List<TablePlayer>> {
|
|||||||
"MIN(p." + PingTable.MIN_PING + ") as " + PingTable.MIN_PING +
|
"MIN(p." + PingTable.MIN_PING + ") as " + PingTable.MIN_PING +
|
||||||
FROM + PingTable.TABLE_NAME + " p" +
|
FROM + PingTable.TABLE_NAME + " p" +
|
||||||
WHERE + "p." + PingTable.USER_ID + userIdsInSet +
|
WHERE + "p." + PingTable.USER_ID + userIdsInSet +
|
||||||
|
AND + "p." + PingTable.DATE + ">=" + afterDate +
|
||||||
|
AND + "p." + PingTable.DATE + "<=" + beforeDate +
|
||||||
(serverUUIDs.isEmpty() ? "" : AND + "p." + PingTable.SERVER_ID + " IN (" + selectServerIds + ")") +
|
(serverUUIDs.isEmpty() ? "" : AND + "p." + PingTable.SERVER_ID + " IN (" + selectServerIds + ")") +
|
||||||
GROUP_BY + "p." + PingTable.USER_ID;
|
GROUP_BY + "p." + PingTable.USER_ID;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user