Event type qualifiers #194
Replies: 1 comment 5 replies
-
Agree we can keep them all in the Right now there exists only Event.get_qualifier_value. When we add multiple values for a single qualifier it would be good to have a way to get all qualifiers for a certain event. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As you can see in the code below, we add at maximum only one PassQualifier per pass event. @koenvo Why do we only add one PassQualifier per pass event? Why don't we change all the elif to if statements? Wouldn't that more accurately describe the pass event?
This question / idea is generalizable to any event type for any event provider.
Code:
https://github.com/PySport/kloppy/blob/master/kloppy/infra/serializers/event/opta/deserializer.py#LL386C1-L404C22
Beta Was this translation helpful? Give feedback.
All reactions