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

Update hockey positions #505

Merged
merged 3 commits into from
Dec 1, 2023
Merged

Conversation

samthom1
Copy link
Contributor

@samthom1 samthom1 commented Nov 21, 2023

Hockey positions don't hold the same key:value relationship between the eligibleSlots and lineupSlot fields and the position field under player.py.

Modified constant.py to match the eligibleSlots and lineupSlot values (which has an extra 'Forward' value) and reconfigured the Player() init to account for the mismatch in keys.

Add descriptions for all positions, correct previous position shift for forwards.
Shift position & lineupSlot lookups by one to account for incongruency with the position keys in the eligibleSlots field.
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (cac4300) 80.53% compared to head (7f52448) 80.53%.
Report is 2 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #505   +/-   ##
=======================================
  Coverage   80.53%   80.53%           
=======================================
  Files          59       59           
  Lines        2106     2106           
=======================================
  Hits         1696     1696           
  Misses        410      410           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Correction on lineupSlot, keys are the same as eligibleSlots
@cwendt94
Copy link
Owner

cwendt94 commented Dec 1, 2023

Wow this is interesting, I wonder why ESPN just didn't use the same ids.

@cwendt94 cwendt94 merged commit cff22b5 into cwendt94:master Dec 1, 2023
3 checks passed
@samthom1 samthom1 deleted the UpdateHockeyPositions branch April 10, 2024 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants