fix placeholder ranking
This commit is contained in:
parent
d4f22de7b0
commit
1b0f18cdf9
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ public class PlayerInfoTable {
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
public Integer getRanking(String order, UUID uuid){
|
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)){
|
try(Connection connection = Database.connect(); PreparedStatement statement = connection.prepareStatement(sql)){
|
||||||
statement.setBytes(1, encodeUUID(uuid));
|
statement.setBytes(1, encodeUUID(uuid));
|
||||||
ResultSet rs = statement.executeQuery();
|
ResultSet rs = statement.executeQuery();
|
||||||
|
|
Loading…
Reference in a new issue