Skip to content

Commit

Permalink
removed dead code in misc.py
Browse files Browse the repository at this point in the history
  • Loading branch information
esqew committed Nov 30, 2023
1 parent 447c4c3 commit 5ac9614
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion kenpompy/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def get_current_season(browser: mechanicalsoup.StatefulBrowser):
Returns:
current_season (int): Number corresponding to the last season year that has data published
"""
response = browser.open('https://kenpom.com/index.php')
page_title = browser.page.select_one('#content-header h2').text
YEAR_PATTERN = r'^(\d{4})'
return int(re.match(YEAR_PATTERN, page_title).group(0))
Expand Down

0 comments on commit 5ac9614

Please sign in to comment.