Skip to content

Commit

Permalink
Update ESPN API Base Endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
kenzliang authored Aug 27, 2024
1 parent a551959 commit 0bb66df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dao/platforms/espn.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def __init__(self, base_dir: Path, data_dir: Path, league_id: str, season: int,
week_validation_function: Callable, save_data: bool = True, offline: bool = False):
super().__init__(
"ESPN",
"https://fantasy.espn.com",
"https://lm-api-reads.fantasy.espn.com",
base_dir,
data_dir,
league_id,
Expand Down Expand Up @@ -411,7 +411,7 @@ def map_data_to_base(self):
- int(team_json["transactionCounter"].get("acquisitionBudgetSpent", 0))
)
base_team.url = (
f"https://fantasy.espn.com/football/team"
f"https://lm-api-reads.fantasy.espn.com/football/team"
f"?leagueId={self.league.league_id}&teamId={base_team.team_id}"
)

Expand Down

0 comments on commit 0bb66df

Please sign in to comment.