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

Can't lock player in UTIL Position NBA DraftKings #407

Open
MindingTheData opened this issue Apr 10, 2023 · 1 comment
Open

Can't lock player in UTIL Position NBA DraftKings #407

MindingTheData opened this issue Apr 10, 2023 · 1 comment

Comments

@MindingTheData
Copy link

I'm looking to lock certain players in the UTIL position on a DraftKings NBA contest.

Here's an example of what this might look like:

optimizer.player_pool.lock_player('Karl-Anthony Towns', 'UTIL')

However, I'm getting the following error:
LineupOptimizerException: Position UTIL doesn't exist. Available positions are C,PG,SG,SF,PF

Is there any way I'm able to specifically lock a player into the UTIL position?

@Milkman9691
Copy link

By using this is may work personally I have never tried this but it is a possibility

P1 = optimizer.player_pool.get_player_by_name('Karl-Anthony Towns', for_positions['UTIL'])

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

No branches or pull requests

2 participants