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 incorrect home records in NBA boxscores #258

Merged
merged 1 commit into from
Nov 18, 2019
Merged

Conversation

roclark
Copy link
Owner

@roclark roclark commented Nov 18, 2019

The NBA Boxscore class was pulling the incorrect home record in some scenarios. Instead of picking a particular index, the home team's record should be the final index as a non-deterministic amount of records could be displayed on a page, but the home team will always be last.

Fixes #230

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

@roclark roclark added the bug Something isn't working label Nov 18, 2019
@roclark roclark added this to the Release 0.4.7 milestone Nov 18, 2019
@roclark roclark self-assigned this Nov 18, 2019
@codecov
Copy link

codecov bot commented Nov 18, 2019

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #258      +/-   ##
==========================================
+ Coverage   99.96%   99.96%   +<.01%     
==========================================
  Files          42       42              
  Lines        9366     9371       +5     
==========================================
+ Hits         9363     9368       +5     
  Misses          3        3
Impacted Files Coverage Δ
sportsreference/nba/constants.py 100% <ø> (ø) ⬆️
sportsreference/nba/boxscore.py 100% <100%> (ø) ⬆️
sportsreference/utils.py 96.77% <100%> (+0.1%) ⬆️

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 3ee7803...6bcd9b9. Read the comment docs.

The NBA Boxscore class was pulling the incorrect home record in some
scenarios. Instead of picking a particular index, the home team's record
should be the final index as a non-deterministic amount of records could
be displayed on a page, but the home team will always be last.

Signed-Off-By: Robert Clark <robdclark@outlook.com>
@roclark roclark merged commit 0236ef9 into master Nov 18, 2019
@roclark roclark deleted the patch/fix-nba-records branch November 18, 2019 17:58
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.

NBA Boxscrore Away, Home wins
1 participant