-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update NFL season URL #250
Conversation
sportsreference/nfl/constants.py
Outdated
@@ -352,7 +352,8 @@ | |||
'punt_return_touchdowns': 'td[data-stat="punt_ret_td"]' | |||
} | |||
|
|||
SEASON_PAGE_URL = 'http://www.pro-football-reference.com/years/%s.html' | |||
# SEASON_PAGE_URL = 'http://www.pro-football-reference.com/years/%s.html' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this URL is no longer valid, we should probably get rid of this line entirely. I know it won't be used as it's a comment, but I think it would look cleaner if we just took it out altogether.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! I just have my one note about removing the comment and this should be good! It looks like this should clear up the unit tests too which is great! Thanks for putting this together!
On further inspection, it looks like this PR should completely resolve the issues with the push tests, so I would like to get this merged prior to any other code so the checks on other updates will be valid. |
Thanks for the update @DavidLiuGit! This looks great! It seems that some of the tests are failing here, but they don't appear to be related to your change, so I would like to move forward with merging this and work on other updates moving forward. Thanks again for taking care of this and for the contribution! |
PFF's season page moved to a new URL. Updating
SEASON_PAGE_URL
innfl.constants
to reflect the change.