DimaKudosh / pydfs-lineup-optimizer

Daily Fantasy Sports lineup optimzer for all popular daily fantasy sports sites
MIT License
424 stars 157 forks source link

Lateswap Ignores Exposure Settings #337

Closed holmes72 closed 2 years ago

holmes72 commented 2 years ago

Just ran late swap and all my player exposures were ignored. In this case I'm getting the player by name and setting min/max exposure. Is this expected or is there another method used to apply exposures to optimize_lineups?

holmes72 commented 2 years ago

I moved the overall max exposure to the player import file and this worked fine. I was having all sorts of issues with late swap (ignoring exposures and "unable to build lineup" error were the main issues). Turns out I had an extra field in my import file (a field I use to ID the projection set) and this was causing all the problems. Removed the field and now all is working as expected.