Skip to content

Commit

Permalink
Make Query view affect ping data retrieved
Browse files Browse the repository at this point in the history
All ping data was being used to create average.

This allows comparing ping over time
  • Loading branch information
AuroraLS3 committed Jan 27, 2024
1 parent 7494902 commit 3ad5d57
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ public List<TablePlayer> executeQuery(SQLDB db) {
"MIN(p." + PingTable.MIN_PING + ") as " + PingTable.MIN_PING +
FROM + PingTable.TABLE_NAME + " p" +
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 + ")") +
GROUP_BY + "p." + PingTable.USER_ID;

Expand Down

0 comments on commit 3ad5d57

Please sign in to comment.