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

Sleeper Wrapper Pull #22

Open
wants to merge 91 commits into
base: master
Choose a base branch
from

Conversation

NotTheCrocHunter
Copy link

Added cache functionality to the Players and Stats. Further developed the League, Players, and Stats classes. Added basic GUI module for testing.

… one of OrdereredDicts and one of regular dicts. Method also automatically calls Players to add player name and info to the dictionaries. get_week_range also accepts league.scoring_settings to calculate custom points.

Also, upon initialization, Players will automatically call and assign to the Players.all_players attribute.
…r class return string to not include player age
…l the rosters with objects of the Player class. Added roster __str__ to display the team names and the players on each team by calling league.get_rosters() and then printer roster.players. Also added league_testing.py to test the roster class.
# Conflicts:
#	main.py
#	sleeper_wrapper/league.py
#	sleeper_wrapper/players.py
Also added some attributes for Stats class to be more of an object.
…s, and getting stat totals over a range of weeks
…eed to figure out how to grab positional baseline players.
get_stats_totals, add_rank_custom, add_pos_rank_custom, vbd_baseline_players, vbd_score, and gets_stats_average are now working.

Need to address what self.stats should be if a week range is given.  Also need to add consistency rankings for weekly stats.
# Conflicts:
#	data/players/all_players.json
…ank columns for the draft round/pick info that comes from Sleeper.
…the default value of set_to_index back to 0 when adding or removing a keeper.
… the board location values for easy reference.
…on to external functions. Also worked on cleaning up the GUI. Added a tab group for the cheatsheets.
# Conflicts:
#	draftboard_gui_buttons.py
….Tables, all populated by the get cheatsheet data func. Cleaned up the draftboard_brain module.
… and df['is_drafted'] != True. I think I need to figure out how to make that a bool column.
…unction. Moved the KeeperPopUp to it's own module, and created the League pop up to house the league data.
…d VBD/Custom score when we detect a valid sleeper ID in the league IDs json.
# Conflicts:
#	LeaguePopUp.py
…raftboard_brain. Tweaked the buttons in the main draftboard.
…rmal after completing search. Also fixed the VBD process (was not calculating each position properly).
…rmal after completing search. Also fixed the VBD process (was not calculating each position properly).
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.

1 participant