Add limit checks for t20 as well

master
Joshua Sigona 4 years ago
parent 5f2f48aae3
commit 8f928fca05
  1. 13
      src/main/java/d4dj/d4dj/App.java
  2. BIN
      target/classes/d4dj/d4dj/App.class

@ -395,9 +395,16 @@ public class App
if (!error1) {
for (int i=0;i<20;i++) {
new Thread(
new SubmitThread(t20names[i],t20desc[i],t20scores[i],EVENT,i+1))
.start();
if (lastScores[i]==0||(
StringUtils.isNumeric(lowerTierScores[i])&&
lastScores[i]<Integer.parseInt(lowerTierScores[i]))) {
new Thread(
new SubmitThread(t20names[i],t20desc[i],t20scores[i],EVENT,i+1))
.start();
lastScores[i]=Integer.parseInt(lowerTierScores[i]);
} else {
System.out.println("No update required for rank "+(i+1));
}
}
} else {
System.out.println("Cannot submit t20 scores. Invalid array params.");

Loading…
Cancel
Save