Skip to content

Conversation

@RandalMorris
Copy link
Contributor

Fixed pulling draft data for a league from Fleaflicker not working.

R/flea_draft.R Outdated
"player_name" = "nameFull",
"pos" = "position",
"team" = "proTeamAbbreviation") %>%
tidyr::hoist("slot", "pick_no" = "slot", "overall") %>%
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this was previously called pick and not pick_no (see the old code that this is replacing)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@tanho63
Copy link
Member

tanho63 commented Aug 26, 2023

Looking into this - seems like this is now causing some tests to fail. Can you provide a couple sample flea league_ids ?

@RandalMorris
Copy link
Contributor Author

Looking into this - seems like this is now causing some tests to fail. Can you provide a couple sample flea league_ids ?

Weird. Here are a few.

124676 140922 140974 140975 156396 158057

@tanho63
Copy link
Member

tanho63 commented Sep 10, 2023

Asked around and it doesn’t seem like there’s a systematic reason as to why some leagues return the old format or the newer one. Super strange. I’ll probably need to implement some kind of conditional logic based on the API returns which is a very ugly approach but better than anything I can think of atm 🫠

@RandalMorris
Copy link
Contributor Author

It is Flea being Flea.

For the Draft data. 131 leagues returned the same format this year. For some reason the sole league who took Kelce at #1 overall returned something different.

I didn't look at the 1 league. Just filtered it out on the list lol.

Possibly a check that the formats are different on in the top level and either do the import that way or a message saying you're league isn't supported due to the data.

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.

2 participants