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

Add draft support for basketball #424

Merged
merged 1 commit into from
Dec 16, 2022
Merged

Conversation

cjwin2000
Copy link
Contributor

Implements draft support for basketball. Copied over from the football implementation. Only change is the string representation in order to better display the round and pick number.

This should probably be moved to a base pick class, similar to what is planned for players with #124 , but this should do for now. Might also be worth considering adding a player object member instead of the separate name and id-- similar to how the team member is a team object

Implements draft support for basketball. Copied over from the football implementation. Only change is the string representation in order to better display the round and pick number.

This should probably be moved to a base pick class, similar to what is planned for players with cwendt94#124 , but this should do for now. Might also be worth considering adding a player object member instead of the separate name and id-- similar to how the team member is a team object
@cjwin2000 cjwin2000 mentioned this pull request Dec 15, 2022
@codecov-commenter
Copy link

Codecov Report

Base: 80.73% // Head: 81.08% // Increases project coverage by +0.35% 🎉

Coverage data is based on head (7d1b1db) compared to base (6d4a054).
Patch coverage: 91.17% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #424      +/-   ##
==========================================
+ Coverage   80.73%   81.08%   +0.35%     
==========================================
  Files          59       60       +1     
  Lines        2050     2083      +33     
==========================================
+ Hits         1655     1689      +34     
+ Misses        395      394       -1     
Impacted Files Coverage Δ
espn_api/basketball/pick.py 85.71% <85.71%> (ø)
espn_api/basketball/league.py 85.44% <95.00%> (+4.14%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@cwendt94
Copy link
Owner

Thanks again for another PR!

I agree, this could definitely be moved to a base class! I will add it to my TODO for some of the refactoring working I have been wanting to do.

@cwendt94 cwendt94 merged commit 6c33c3f into cwendt94:master Dec 16, 2022
@cjwin2000
Copy link
Contributor Author

Happy to contribute to the project. Thanks for maintaining it! I'll poke around and see if there's some other stuff I can help with as well

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