widavies / TBA-API-V2

A Java API for pulling robotics data from www.thebluealliance.com.
5 stars 0 forks source link

Parsing Matches in wrong order? #14

Closed Techno11 closed 7 years ago

Techno11 commented 7 years ago

I, again, may be doing something wrong, but I have a for loop running, and if the match contains my team number, it collects all the data from the match. All is well with that. However, when I go to list the matches, it orders them like so: Q12 Q26 Q47 Q69 Q7 Q76

Qualifier 7 should be at the beginning, not between 69 and 70.

widavies commented 7 years ago

Thanks for the feedback. Just added match sorting by number. Check out this release: https://github.com/techguy9984/TBA-API/releases/tag/6

Techno11 commented 7 years ago

Great. This works Perfect. However, now the matches are returned in the wrong order, in the fact that it return the highest match first, and counts down from there. Maybe make this a toggleable feature? Order matches From High-low or Low-High.

It should return The Qualification matches starting with match 1 through whatever, and then Octofinal 1- Quarterfinal 1-...Etc.

Thanks!

widavies commented 7 years ago

I'll fix it

widavies commented 7 years ago

Hey @Techno11 @MLavrentyev @JDaniel29, just letting you know, there is now a V3 api for TBA: https://github.com/wdavies973/TBA-API-V3

Techno11 commented 7 years ago

Thanks!