fix get player when no fetch group

This commit is contained in:
jeffcheasey88 2023-09-09 20:47:56 +02:00
parent f6560a85fd
commit a68bc91459

View file

@ -78,11 +78,13 @@ public class DatabaseRepository {
p.addCompletion(new Completion(0, 0));
}
}
if (hasColumn(playerResult, "name")) {
// Manage groups
String groupName = playerResult.getString("name");
if (groupName != null) {
p.addGroup(makeGroup(playerResult));
}
}
// ADD rank
PreparedStatement completionsStmt = DatabaseQuery.GET_PLAYER_RANK.prepare(con);