diff --git a/RaceTimer/racetimer_endpoints/src/main/java/DataMapper/DataMapperCalls.java b/RaceTimer/racetimer_endpoints/src/main/java/DataMapper/DataMapperCalls.java index c37ca985..0d96bc4d 100644 --- a/RaceTimer/racetimer_endpoints/src/main/java/DataMapper/DataMapperCalls.java +++ b/RaceTimer/racetimer_endpoints/src/main/java/DataMapper/DataMapperCalls.java @@ -41,12 +41,12 @@ public class DataMapperCalls { //System.out.println("player dataMapper: " + player.getName() + "\nsteamid: " + player.getSteamID()); int i = 3; while (i < fetchSize) { - String columnLabel = result.getMetaData().getColumnLabel(i); - if (!allMapBoards.keySet().contains(columnLabel)) { - allMapBoards.put(columnLabel, new MapBoard(columnLabel)); - } double specificDouble = result.getDouble(i); if (specificDouble > 0.000) { + String columnLabel = result.getMetaData().getColumnLabel(i); + if (!allMapBoards.keySet().contains(columnLabel)) { + allMapBoards.put(columnLabel, new MapBoard(columnLabel)); + } timesCounter++; MapValues mapValue = new MapValues(); mapValue.setPlayerSteamID(player.getSteamID());