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 NFL players wrongly being listed as away #507

Merged
merged 1 commit into from
Oct 16, 2020
Merged

Conversation

roclark
Copy link
Owner

@roclark roclark commented Oct 16, 2020

Occasionally, some NFL Boxscores would incorrectly list the home team players as away. This is caused by the home and away teams using different abbreviations in their URIs than the abbreviations listed in the tables, which would fail the branching logic to select the players for a specific team.

By checking the abbreviations listed on the actual page outside of the URIs, the players can be placed properly into one team or the other.

Fixes #501

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

Occasionally, some NFL Boxscores would incorrectly list the home team
players as away. This is caused by the home and away teams using
different abbreviations in their URIs than the abbreviations listed in
the tables, which would fail the branching logic to select the players
for a specific team.

By checking the abbreviations listed on the actual page outside of the
URIs, the players can be placed properly into one team or the other.

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

codecov bot commented Oct 16, 2020

Codecov Report

Merging #507 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #507   +/-   ##
=======================================
  Coverage   99.97%   99.97%           
=======================================
  Files          55       55           
  Lines       13094    13106   +12     
=======================================
+ Hits        13091    13103   +12     
  Misses          3        3           
Impacted Files Coverage Δ
sportsreference/nfl/constants.py 100.00% <ø> (ø)
sportsreference/nfl/boxscore.py 99.83% <100.00%> (+<0.01%) ⬆️

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 4c18119...fd8cdec. Read the comment docs.

@roclark roclark merged commit 5bb12aa into master Oct 16, 2020
@roclark roclark deleted the fix-nfl-player-teams branch October 17, 2020 01:21
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.

NFL Boxscore not separating boxscore.away_players from boxscore.home_players
1 participant