Skip to content

Commit

Permalink
Merge pull request #538 from rob-sumer/patch-1
Browse files Browse the repository at this point in the history
Refresh Draft function for Football
  • Loading branch information
cwendt94 authored Apr 25, 2024
2 parents 924dc53 + 9f62cc1 commit b2c37be
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions espn_api/football/league.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,14 @@ def refresh(self):

self.nfl_week = data['status']['latestScoringPeriod']
self._fetch_teams(data)

def refresh_draft(self, refresh_players=False, refresh__teams=False):
super()._fetch_draft()
if refresh_players:
self._fetch_players()
if refresh__teams:
self._fetch_teams(data)

def load_roster_week(self, week: int) -> None:
'''Sets Teams Roster for a Certain Week'''
params = {
Expand Down

0 comments on commit b2c37be

Please sign in to comment.