cwendt94 / espn-api

ESPN Fantasy API! (Football, Basketball)
MIT License
544 stars 183 forks source link

Only grab player stats for specified year #423

Closed cjwin2000 closed 1 year ago

cjwin2000 commented 1 year ago

Prevents stats from being pulled from games in previous years. This could occur when a player had games with the same scoringPeriodId in multiple years

codecov-commenter commented 1 year ago

Codecov Report

Base: 80.42% // Head: 80.73% // Increases project coverage by +0.30% :tada:

Coverage data is based on head (5585186) compared to base (74a4cca). Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #423 +/- ## ========================================== + Coverage 80.42% 80.73% +0.30% ========================================== Files 53 59 +6 Lines 2018 2050 +32 ========================================== + Hits 1623 1655 +32 Misses 395 395 ``` | [Impacted Files](https://codecov.io/gh/cwendt94/espn-api/pull/423?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Christian+Wendt) | Coverage Δ | | |---|---|---| | [espn\_api/basketball/player.py](https://codecov.io/gh/cwendt94/espn-api/pull/423/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Christian+Wendt#diff-ZXNwbl9hcGkvYmFza2V0YmFsbC9wbGF5ZXIucHk=) | `100.00% <100.00%> (ø)` | | | [espn\_api/hockey/\_\_init\_\_.py](https://codecov.io/gh/cwendt94/espn-api/pull/423/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Christian+Wendt#diff-ZXNwbl9hcGkvaG9ja2V5L19faW5pdF9fLnB5) | `100.00% <0.00%> (ø)` | | | [espn\_api/wbasketball/\_\_init\_\_.py](https://codecov.io/gh/cwendt94/espn-api/pull/423/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Christian+Wendt#diff-ZXNwbl9hcGkvd2Jhc2tldGJhbGwvX19pbml0X18ucHk=) | `100.00% <0.00%> (ø)` | | | [espn\_api/basketball/\_\_init\_\_.py](https://codecov.io/gh/cwendt94/espn-api/pull/423/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Christian+Wendt#diff-ZXNwbl9hcGkvYmFza2V0YmFsbC9fX2luaXRfXy5weQ==) | `100.00% <0.00%> (ø)` | | | [espn\_api/baseball/\_\_init\_\_.py](https://codecov.io/gh/cwendt94/espn-api/pull/423/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Christian+Wendt#diff-ZXNwbl9hcGkvYmFzZWJhbGwvX19pbml0X18ucHk=) | `100.00% <0.00%> (ø)` | | | [espn\_api/\_\_init\_\_.py](https://codecov.io/gh/cwendt94/espn-api/pull/423/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Christian+Wendt#diff-ZXNwbl9hcGkvX19pbml0X18ucHk=) | `100.00% <0.00%> (ø)` | | | [espn\_api/football/\_\_init\_\_.py](https://codecov.io/gh/cwendt94/espn-api/pull/423/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Christian+Wendt#diff-ZXNwbl9hcGkvZm9vdGJhbGwvX19pbml0X18ucHk=) | `100.00% <0.00%> (ø)` | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Christian+Wendt). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Christian+Wendt)

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