Skip to content

Commit

Permalink
Merge pull request #197 from DrSleep/fixing-shot-foot-parsing
Browse files Browse the repository at this point in the history
Fixed foot left/right typo in shot parsing for WyScout v3
  • Loading branch information
koenvo authored Jul 6, 2023
2 parents c5e5f5f + d3236ca commit 9650846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kloppy/infra/serializers/event/wyscout/deserializer_v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def _parse_shot(raw_event: Dict) -> Dict:
qualifiers.append(BodyPartQualifier(value=BodyPart.HEAD))
elif raw_event["shot"]["bodyPart"] == "left_foot":
qualifiers.append(BodyPartQualifier(value=BodyPart.LEFT_FOOT))
elif raw_event["shot"]["bodyPart"] == "left_foot":
elif raw_event["shot"]["bodyPart"] == "right_foot":
qualifiers.append(BodyPartQualifier(value=BodyPart.RIGHT_FOOT))

return {
Expand Down

0 comments on commit 9650846

Please sign in to comment.