Skip to content

Commit

Permalink
Restore default None for team arg
Browse files Browse the repository at this point in the history
  • Loading branch information
seankim658 committed Oct 25, 2024
1 parent 67319af commit 4fe156a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kenpompy/team.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ def get_valid_teams(browser: CloudScraper, season: Optional[str]=None):

return team_list

def get_schedule(browser: CloudScraper, team: str, season: Optional[str]=None):
def get_schedule(browser: CloudScraper, team: Optional[str]=None, season: Optional[str]=None):
"""
Scrapes a team's schedule from (https://kenpom.com/team.php) into a dataframe.
Args:
browser (CloudScraper): Authenticated browser with full access to kenpom.com generated
by the `login` function
team (str): Used to determine which team to scrape for schedule.
team (str, optional): Used to determine which team to scrape for schedule.
season (str, optional): Used to define different seasons. 2002 is the earliest available season.
Returns:
Expand Down

0 comments on commit 4fe156a

Please sign in to comment.