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 NCAAF conference class for empty pages #183

Merged
merged 1 commit into from
Sep 3, 2019

Conversation

roclark
Copy link
Owner

@roclark roclark commented Sep 3, 2019

Occasionally, a conference page for NCAAF will be an empty document, devoid of any information that can be parsed. When this happens, the Teams class throws an error as it relies on getting information from the Conferences class to determine which conference each team participates in. Instead of attempting to pull the information from other sources, if a conference page isn't valid, any team that participates in that conference should have a conference attribute of None to avoid presenting incorrect information.

Fixes #179

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

Occasionally, a conference page for NCAAF will be an empty document,
devoid of any information that can be parsed. When this happens, the
Teams class throws an error as it relies on getting information from the
Conferences class to determine which conference each team participates
in. Instead of attempting to pull the information from other sources, if
a conference page isn't valid, any team that participates in that
conference should have a conference attribute of None to avoid
presenting incorrect information.

Signed-Off-By: Robert Clark <robdclark@outlook.com>
@roclark roclark added the bug Something isn't working label Sep 3, 2019
@roclark roclark added this to the Release 0.4.4 milestone Sep 3, 2019
@roclark roclark self-assigned this Sep 3, 2019
@codecov
Copy link

codecov bot commented Sep 3, 2019

Codecov Report

Merging #183 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #183      +/-   ##
==========================================
+ Coverage   99.97%   99.97%   +<.01%     
==========================================
  Files          43       43              
  Lines        9288     9298      +10     
==========================================
+ Hits         9286     9296      +10     
  Misses          2        2
Impacted Files Coverage Δ
sportsreference/ncaaf/conferences.py 100% <100%> (ø) ⬆️
sportsreference/ncaaf/teams.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 49228d7...20587e8. Read the comment docs.

1 similar comment
@codecov
Copy link

codecov bot commented Sep 3, 2019

Codecov Report

Merging #183 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #183      +/-   ##
==========================================
+ Coverage   99.97%   99.97%   +<.01%     
==========================================
  Files          43       43              
  Lines        9288     9298      +10     
==========================================
+ Hits         9286     9296      +10     
  Misses          2        2
Impacted Files Coverage Δ
sportsreference/ncaaf/conferences.py 100% <100%> (ø) ⬆️
sportsreference/ncaaf/teams.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 49228d7...20587e8. Read the comment docs.

@roclark roclark merged commit 1437ea0 into master Sep 3, 2019
@roclark roclark deleted the patch/fix-ncaaf-teams-issue branch September 3, 2019 02:16
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.

NCAAF Teams for current season (2019) is empty
1 participant