Skip to content
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

Fix issue pulling NCAAF games without time #154

Merged
merged 1 commit into from
Aug 3, 2019

Conversation

roclark
Copy link
Owner

@roclark roclark commented Aug 3, 2019

In the seasons prior to 2013, sports-reference.com does not include a time field in the NCAAF game's information page. This causes the time property to be set to None, which fails while attempting to parse a DateTime between the date and time properties. This behavior can be circumvented by only creating a DateTime of the date as opposed to the date and time when time is None.

Fixes #138

Signed-Off-By: Robert Clark robdclark@outlook.com

In the seasons prior to 2013, sports-reference.com does not include a
time field in the NCAAF game's information page. This causes the time
property to be set to None, which fails while attempting to parse a
DateTime between the date and time properties. This behavior can be
circumvented by only creating a DateTime of the date as opposed to the
date and time when time is None.

Signed-Off-By: Robert Clark <robdclark@outlook.com>
@roclark roclark added the bug Something isn't working label Aug 3, 2019
@roclark roclark added this to the Release 0.4.4 milestone Aug 3, 2019
@roclark roclark self-assigned this Aug 3, 2019
@roclark roclark merged commit c198655 into master Aug 3, 2019
@roclark roclark deleted the patch/fix-ncaaf-legacy-times branch August 3, 2019 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CFB Schedule Load Fails for all seasons before 2013
1 participant