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

[General] Fixed Undersirable "None" value for positions.last() #374

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

UnravelSports
Copy link
Contributor

@UnravelSports UnravelSports commented Dec 17, 2024

Hi,

I noticed that with the new TimeContainer functionality, when we call player.positions.last() we would get a None value as the last position for a lot of players. I'm assuming this is because of substitutions?

I've resolved the issue by now simply returning the last not None value, such that at least for every player that was on the pitch during the game the last() call gives a valid position.

Additionally, since I was getting a deprecation warning I fixed some very small syntax in the f24 xml parsing. This is not part of the same problem though.

Edit: I'll fix the tests if we agree that this problem even needs a fix

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.

1 participant