Skip to content

Commit

Permalink
Rename soccer seasons to competitions
Browse files Browse the repository at this point in the history
  • Loading branch information
conormag94 committed Mar 29, 2017
1 parent fbc787a commit e557c9c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyscores/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def print_standings(table):

def get_fixtures(league, time_frame=7):
if league in config.LEAGUE_IDS:
request_url = "{}soccerseasons/{}/fixtures?timeFrame=n{}".format(BASE_URL, config.LEAGUE_IDS[league],
request_url = "{}competitions/{}/fixtures?timeFrame=n{}".format(BASE_URL, config.LEAGUE_IDS[league],
time_frame)
else:
print("Error: No such league code")
Expand All @@ -102,7 +102,7 @@ def get_fixtures(league, time_frame=7):
# Gets results for the most recent matchday
def get_results(league, time_frame=7):
if league in config.LEAGUE_IDS:
request_url = "{}soccerseasons/{}/fixtures?timeFrame=p{}".format(BASE_URL, config.LEAGUE_IDS[league],
request_url = "{}competitions/{}/fixtures?timeFrame=p{}".format(BASE_URL, config.LEAGUE_IDS[league],
time_frame)
else:
print("Error: No such league code")
Expand All @@ -121,7 +121,7 @@ def get_results(league, time_frame=7):
# Gets current league table from selected league and calls print function
def get_standings(league):
if league in config.LEAGUE_IDS:
request_url = "{}soccerseasons/{}/leagueTable".format(BASE_URL, config.LEAGUE_IDS[league])
request_url = "{}competitions/{}/leagueTable".format(BASE_URL, config.LEAGUE_IDS[league])
else:
print("Error: No such league code")

Expand Down

0 comments on commit e557c9c

Please sign in to comment.