Skip to content

Commit 970ec23

Browse files
authored
fix(FotMob): Update read_schedule to use "fixtures" key (#898)
Changing the lookup key from "matches" to "fixtures"
1 parent 4dc6717 commit 970ec23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

soccerdata/fotmob.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def read_schedule(self, force_cache: bool = False) -> pd.DataFrame:
286286
reader = self.get(url, filepath, no_cache=current_season and not force_cache)
287287
season_data = json.load(reader)
288288

289-
df = pd.json_normalize(season_data["matches"]["allMatches"])
289+
df = pd.json_normalize(season_data["fixtures"]["allMatches"])
290290
df["league"] = lkey
291291
df["season"] = skey
292292
all_schedules.append(df)

0 commit comments

Comments
 (0)