Refactor API Football to v3
This commit is contained in:
@@ -10,7 +10,7 @@ public class TeamIDMatcherTemplateCreator {
|
||||
|
||||
public TeamIDMatcherTemplateCreator(int season, int league) throws Exception {
|
||||
this.con = APIFootballConnector.getAPIFootballConnectorInstance(season);
|
||||
JSONObject apiObject = con.getTeamsForLeague(league);
|
||||
JSONObject apiObject = con.getTeamsForLeague(season, league);
|
||||
JSONObject teamsObject = (JSONObject) apiObject.get("api");
|
||||
this.teams = (JSONArray) teamsObject.get("teams");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user