roengle / VexInfo

Uses VexDB API to read statistics different teams competing at a tournament to input into a Google Sheet.
1 stars 0 forks source link

TODO: Have functionality to check 4-week restriction #17

Closed roengle closed 6 years ago

roengle commented 6 years ago

The VexDB.io API has a restriction for getting team lists for an event: the current date must be 4 weeks or less than the scheduled event date.

Labeled bug since it could potentially be a bug if a user were to call within outside of the restriction. IE a user wants to get data for an event that is in 1.5 months, which would not fit the restriction

roengle commented 6 years ago

done, sort of. Will keep open until I decide whether I should use Checked of Unchecked exceptions and test this with made up values to make sure it works

roengle commented 6 years ago

done (bb9da6b9)

roengle commented 6 years ago

note: Instead of using exceptions, I just had the program check and exit if the restriction wasn't met, as recommended in the comments of this post