avgupta456 / statbotics

📈 Modernizing Data Analytics for FRC Robotics
https://statbotics.io/
MIT License
64 stars 9 forks source link

Matches endpoint doesn't support offseason events #337

Closed William5553 closed 3 months ago

William5553 commented 10 months ago

The /v2/matches/event/{event} endpoint doesn't support offseason events, for example, api.statbotics.io/v2/matches/event/2023iri returns an empty array. However, checking individual matches does work (api.statbotics.io/v2/match/2023iri_f1m1).

avgupta456 commented 10 months ago

Sorry about that! The default filtering excludes offseason events, even if the event is an offseason event. For now, can you use this endpoint instead: https://api.statbotics.io/v2/matches?event=2023iri&offseason=True.

I'm working on v3 of the API right now. I'll keep this issue open so I can make sure this edge case is fixed.