From 1b0f18cdf9fa467d68b0349986573dbcb58048c5 Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Wed, 11 May 2022 09:57:32 -0400 Subject: [PATCH] fix placeholder ranking --- .../net/tylermurphy/hideAndSeek/database/PlayerInfoTable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/tylermurphy/hideAndSeek/database/PlayerInfoTable.java b/src/main/java/net/tylermurphy/hideAndSeek/database/PlayerInfoTable.java index aab42b8..37f11fd 100644 --- a/src/main/java/net/tylermurphy/hideAndSeek/database/PlayerInfoTable.java +++ b/src/main/java/net/tylermurphy/hideAndSeek/database/PlayerInfoTable.java @@ -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();