sertalpbilal / FPL-Optimization-Tools

A collection of tutorials and recipes to use optimization for winning Fantasy Premier League :)
Apache License 2.0
129 stars 45 forks source link

Fix locked_next_week type error #28

Closed guymccombe closed 2 months ago

guymccombe commented 2 months ago

Removes incorrect subscript

sertalpbilal commented 2 months ago

Hi @guymccombe thanks for the pull request. image "locked_next_gw" could be either just a list of IDs, or a list of lists. In each one, you can give [ID, gameweek]. At least that's what the README says at the moment. Is it possible to check if an element is list or not? If list, we need the index 0. If not, then we can grab the element as is.

Either this, or we need to fix the README and say that we only accept list of IDs from now on.