You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The parameters in get_league do not affect the output.
All of the below calls return the same output. It returns all of the league's information. Changing the tab parameter does not do anything.
league_id=47# premier leagueres=client.get_league(league_id )
matches_res=client.get_league(league_id ,tab='matches')
table_res=client.get_league(league_id, tab=' table')
# Changing the tab parameter does not change the output. Tried with all of the documented tab options (overview, table, matches, stats, transfers)# confirm it returns same dataassertres==matches_resassertres==table_resassertmatches_res==table_res
Expected Behavior
If we specify a parameter, then the output should return data only for that parameter.
client.get_league(league_id ,tab='matches') should only return data about the league's matches.
Steps To Reproduce
main.py
league_id = 47 # premier league
res = client.get_league(league_id )
matches_res = client.get_league(league_id ,tab='matches')
table_res = client.get_league(league_id, tab=' table')
# Changing the tab parameter does not change the output. Tried with all of the documented tab options (overview, table, matches, stats, transfers)
# confirm it returns same data
assert res == matches_res
assert res == table_res
assert matches_res == table_res
Is there an existing issue for this?
Current Behavior
The parameters in
get_league
do not affect the output.All of the below calls return the same output. It returns all of the league's information. Changing the
tab
parameter does not do anything.Expected Behavior
If we specify a parameter, then the output should return data only for that parameter.
client.get_league(league_id ,tab='matches')
should only return data about the league's matches.Steps To Reproduce
main.py
Steps:
Environment
Version
1.0.0
Anything else?
The root cause might be incorrect way of applying the tab parameter in the API url
get_league
internally builds urls like these:These urls all return the same data.
The text was updated successfully, but these errors were encountered: