Skip to content

Commit

Permalink
Make 'other' default bodypart of keeper actions
Browse files Browse the repository at this point in the history
  • Loading branch information
probberechts committed Nov 17, 2023
1 parent 8935366 commit 47fce95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion socceraction/spadl/statsbomb.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ def _parse_clearance_event(extra: dict[str, Any]) -> tuple[str, str, str]:
r = 'success'
bp = extra.get('clearance', {}).get('body_part', {}).get('name')
if bp is None:
b = 'foot'
b = 'other'
elif 'Head' in bp:
b = 'head'
elif bp == 'Left Foot':
Expand Down

0 comments on commit 47fce95

Please sign in to comment.