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

Switch MLB Boxscore player teams #369

Merged
merged 1 commit into from
Apr 2, 2020

Conversation

roclark
Copy link
Owner

@roclark roclark commented Apr 2, 2020

The home and away players in the MLB Boxscore class were being saved in the opposite property, causing home players to show under away_players and vice-versa. The algorithm wrongly assumed the away team matched with odd-numbered tables, when the numbers are zero-based, and should instead match with even-numbered tables as a result.

Fixes #368

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

The home and away players in the MLB Boxscore class were being saved in
the opposite property, causing home players to show under away_players
and vice-versa. The algorithm wrongly assumed the away team matched with
odd-numbered tables, when the numbers are zero-based, and should instead
match with even-numbered tables as a result.

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

codecov bot commented Apr 2, 2020

Codecov Report

Merging #369 into master will not change coverage by %.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #369   +/-   ##
=======================================
  Coverage   99.97%   99.97%           
=======================================
  Files          48       48           
  Lines       10551    10551           
=======================================
  Hits        10548    10548           
  Misses          3        3           
Impacted Files Coverage Δ
sportsreference/mlb/boxscore.py 100.00% <100.00%> (ø)

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 62d94e6...1227804. Read the comment docs.

@roclark roclark merged commit 7487615 into master Apr 2, 2020
@roclark roclark deleted the patch/fix-mlb-boxscore-incorrect-player-teams branch April 2, 2020 02:55
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.

Switch MLB home and away players for Boxscores
1 participant