Skip to content

Commit

Permalink
Fix missing pass reciept id column (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
scotty779 authored Dec 12, 2023
1 parent 067f986 commit 29bb479
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name="statsbombpy",
version="1.11.0",
version="1.12.0",
description="easily stream StatsBomb data into Python",
long_description=README,
long_description_content_type="text/markdown",
Expand Down
2 changes: 1 addition & 1 deletion statsbombpy/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def flatten_event(event, flatten_attrs):
for k, v in event.copy().items():
if isinstance(v, dict) and "name" in v:
event[k] = v["name"]
if k in ["possession_team", "player", "team"]:
if k in ["possession_team", "player", "team", "pass_recipient"]:
event[f"{k}_id"] = v["id"]
return event

Expand Down

0 comments on commit 29bb479

Please sign in to comment.