fix placeholder ranking

This commit is contained in:
Tyler Murphy 2022-05-11 09:57:32 -04:00
parent d4f22de7b0
commit 1b0f18cdf9

View file

@ -188,7 +188,7 @@ public class PlayerInfoTable {
@Nullable
public Integer getRanking(String order, UUID uuid){
String sql = "SELECT count(*) AS total FROM hs_data WHERE "+order+" >= (SELECT "+order+" FROM hs_data WHERE uuid = ?) AND hider_wins > 0;";
String sql = "SELECT count(*) AS total FROM hs_data WHERE "+order+" >= (SELECT "+order+" FROM hs_data WHERE uuid = ?) AND "+order+" > 0;";
try(Connection connection = Database.connect(); PreparedStatement statement = connection.prepareStatement(sql)){
statement.setBytes(1, encodeUUID(uuid));
ResultSet rs = statement.executeQuery();