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 ff_draftpicks does not detect/handle picks for a draft that is in progress. #386

Open
tanho63 opened this issue Dec 12, 2022 · 0 comments

Comments

@tanho63
Copy link
Member

tanho63 commented Dec 12, 2022

Forking previous discussions from #352 and #361

ff_draftpicks is designed to return the following:

  • for the current-season, it should return the numeric-indexed picks (i.e. 1.01, 2.12, 3.01 etc) that have not yet been drafted (and should incorporate trades)
  • for future seasons, it should return future picks by round

Sleeper used to make the former available but now only makes it available if the league is actively drafting - otherwise it only makes the traded picks available and (sometimes) a draft order.

To recreate the previous functionality, I envision sleeper_draftpicks to need to do:

  • check status of draft and whether a draft order is available.
  • if draft order is not avail, treat as future picks
  • if draft order is avail, build pick order from draft order and draft type then apply pick trades, if any.
  • then run ff_draft and see if there's any selected picks to remove
  • then bind onto the existing future drafts
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

1 participant