-
Notifications
You must be signed in to change notification settings - Fork 36
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
55 stat id map not populated in league resource #57
55 stat id map not populated in league resource #57
Conversation
…er-stats Enhancement/include points in player stats
…er-stats Adjusting player stats to use league resource instead of player
…de-points-in-player-stats Fixes by autopep8 action
…om:DMcP89/yahoo_fantasy_api into enhancement/include-points-in-player-stats
…er-stats Clean up
The two main changes here are allowing a handler to be passed to the constructor of the League object and calling certain functions to populate its caches. If this is acceptable we can look to apply similar changes to the other classes.
@spilchen would like your input here before merging, any objections? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for opening the PR! Lets bump the version in setup.py to 2.10.1.
@spilchen I have moved the function calls to populate the stats cache into the inject_yhandler function of the League class. This is the only way I can see to populate the cache at league creation as we need the yhandler in place for the call to settings(). The only alternative to this I can see is having the game code get passed into the league object, but that would require a lot more changes then this. Let me know what you think. |
8570e15
to
8962602
Compare
Should be good to go now @spilchen |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Just had a minor comment.
Update to allow league objects to populate caches at instantiation
closes #55