Skip to content

Commit

Permalink
Fix TeamsOfCompetition fetching data from wrong URL.
Browse files Browse the repository at this point in the history
  • Loading branch information
icedream committed Aug 10, 2017
1 parent 9743b22 commit 7099476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion req_competition_teams.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ func (r CompetitionTeamsRequest) Do() (s TeamList, err error) {

// TeamsOfCompetition prepares a new request to fetch the league table of a given soccer season.
func (c *Client) TeamsOfCompetition(soccerSeasonId uint64) CompetitionTeamsRequest {
return CompetitionTeamsRequest{c.req("competitions/%d/leagueTable", soccerSeasonId)}
return CompetitionTeamsRequest{c.req("competitions/%d/teams", soccerSeasonId)}
}

0 comments on commit 7099476

Please sign in to comment.