Skip to content

Commit

Permalink
feat(sofascore): support 2nd tier leagues
Browse files Browse the repository at this point in the history
Adds support for adding custom leagues that are not one of the
'top-tournaments'.

Fixes #679
  • Loading branch information
probberechts committed Aug 23, 2024
1 parent f2357ae commit b59c875
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion soccerdata/sofascore.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def read_leagues(self) -> pd.DataFrame:
-------
pd.DataFrame
"""
url = SOFASCORE_API + "config/top-unique-tournaments/EN/football"
url = SOFASCORE_API + "config/unique-tournaments/EN/football"
filepath = self.data_dir / "leagues.json"
reader = self.get(url, filepath)
data = json.load(reader)
Expand Down

0 comments on commit b59c875

Please # to comment.