Skip to content

Help with 2022 NHL player data from draft_results #53

Answered by mattdodge
Louque asked this question in Q&A
Discussion options

You must be logged in to vote

It looks like manually creating the league (League(ctx, id)) is not storing the game code on there. That's definitely a bug, thanks for pointing it out!

In the meantime, you can solve this a few other ways

  1. Add the game code manually (league.game_code = 'nhl')
  2. Fetch the league using the ctx.get_leagues() method (league = ctx.get_leagues('nhl', 2023)[0])

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mattdodge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants