Skip to content

Commit

Permalink
I thought I fixed this already....
Browse files Browse the repository at this point in the history
  • Loading branch information
Techno11 committed Feb 17, 2019
1 parent 3b9c16b commit 64651a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ public void getMatchesFromFIRSTApi1819() {
//We Get A string that looks like "F-1" We Remove the "F-"
//In dual division events, the Finals matches start with "IF-"
int fMatchNum;
if (Config.DUAL_DIVISION_EVENT && Config.DIVISION_NUM == 0 && m.matchNumber.startsWith("IF-")) {
if (m.matchNumber.startsWith("IF-")) {
fMatchNum = Integer.parseInt(m.matchNumber.substring(3));
} else {
fMatchNum = Integer.parseInt(m.matchNumber.substring(2));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ public void getRankingsFIRSTApi(){
ranking.setLosses(results[1]);
ranking.setTies(results[2]);
}
teamRankings.add(ranking);
if(ranking.getRank() > -1) {
teamRankings.add(ranking);
}

}
this.controller.btnRankUpload.setDisable(false);
} else {
Expand Down

0 comments on commit 64651a3

Please sign in to comment.