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

League object fails to instantiate when not all teams of league have managers #534

Closed
tylerastraub opened this issue Mar 11, 2024 · 2 comments

Comments

@tylerastraub
Copy link

Sport

Basketball

Summary

We had a member of our league drop all his players during playoffs so I removed his access to the league by removing his email from the league members page. When I went to run our power rankings program this morning, it suddenly stopped working. Adding in a dummy email for the team got everything to run smoothly again. If this is intended, then please close this, but I'm not sure why every team needs to have a team owner for the API to work. See attached image below for the error:

Logs/Data

image

@cwendt94
Copy link
Owner

cwendt94 commented Apr 8, 2024

That is a bug, thanks for reporting. The get and default to single object in array was suppose to prevent that but I am guessing the owners field is present just an empty array. I will look into fixing this.

@cwendt94
Copy link
Owner

cwendt94 commented Apr 8, 2024

Oh looks like this was fixed in the latest version #519!

@cwendt94 cwendt94 closed this as completed Apr 8, 2024
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

2 participants