Site
Home / Forum / Developers / List rounds of competition

List rounds of competition


Posted: 24 May 2020 13:01

zag


Posts: 3,511
Joined: 2020

I think there is a need for a new set of endpoints based on rounds. It can be useful to know the number of rounds and the start and end dates of a particular round without necessarily needing all the matches in that round.
At the moment I think the only way to find it out is to get all events and sort them based on round which is not ideal.
This data is available on API football so should be easy enough to port over?

Posted: 24 May 2020 14:02

zag


Posts: 3,511
Joined: 2020

It should be possible but we need to be careful on re-schedualed events. Sometimes events can be postponed and rounds come later in the year.

Knowing the full number of rounds should be easy enough though. I will add to the V2 request list.

Posted: 24 May 2020 14:43

zag


Posts: 3,511
Joined: 2020

Yeah resceduled and postponed games are a real pain.
I think there needs to be a real think about how to handle them, either leave them in their original allotted round and have the round start and end dates be dynamic to calculate the first and last games. Or move the game to another round that matches their new rescheduled date.

I think the first is the best option since often you know a game will be postponed without a new date so where would you move it? And it avoids having some rounds with 9 fixtures and others with 11 given a regular 10 fixture round like the premier league.

So long as the fixture itself is marked as postponed then the date can be updated later.


Who is Online?

In total there are 68 users online :: 3 registered, 0 hidden and 65 guests (based on users active over the past 5 minutes) Most users ever online was 424 on Fri Nov 10, 2017 9:02 pm

About Us

Discussion forum for TheSportsDB.com site and related topics

Rules

- Be Polite
- Respect other users
- Always post log files with issues
- Try to be helpful
- No Piracy discussion

Showing 0 to 3 (Total: 3)