-
Notifications
You must be signed in to change notification settings - Fork 19
Conversation
Have you tested it with multiple leagues? I think it will also use the topscorersAggregated for other leagues that are not having this issue |
@sebastiaanspeck What should be the desired result to test? |
Well, right now the top scorers are not shown for World Cup. These leagues need to use this aggregated but I don't want to put these league-ids hardcoded so you got to find a way to seperate these leagues from the leagues who don't need the aggregated |
test your code with the next leagues:
|
Use the current master-branch as starting point. I have a folder soccerapi in the root. If you copy the contents of it to vendor/kirill-latish, you can use
|
I've been able to match all your requirements, except for the last one. There doesn't seem to be an endpoint in the API that separates topscorers per round/stage, only per season. |
You can get all possible stages for the league. View the docs for the league-endpoint and you can exclude the stages we don’t want using the stage-ids |
Pull Request [Fix top scorers for excluded leagues]
Added
CustomSoccerApi
that extendsSoccerApi
from thekirill-latish
package. The new class calls toCustomTopScorer
request in which I have added theaggregatedBySeasonId()
method which does not exist in the original package.Does it fix an existing issue? Please tell us which one
Resolves #36