Skip to content

Commit

Permalink
Undo unrelated changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JanVanHaaren committed Jan 14, 2024
1 parent c7c8b6a commit 8787f9c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
4 changes: 0 additions & 4 deletions kloppy/domain/services/event_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ def create_event(event_cls: Type[T], **kwargs) -> T:
but we filter those arguments out.
"""
extra_kwargs = {"state": {}}

if "qualifiers" not in kwargs:
kwargs["qualifiers"] = None

if "related_event_ids" not in kwargs:
extra_kwargs["related_event_ids"] = []

Expand Down
5 changes: 1 addition & 4 deletions kloppy/infra/serializers/event/sportec/deserializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,7 @@ def sportec_metadata_from_xml_elm(match_root) -> SportecMetadata:
if not away_team:
raise DeserializationError("Away team is missing from metadata")

(
home_score,
away_score,
) = match_root.MatchInformation.General.attrib[
(home_score, away_score,) = match_root.MatchInformation.General.attrib[
"Result"
].split(":")
score = Score(home=int(home_score), away=int(away_score))
Expand Down
2 changes: 1 addition & 1 deletion kloppy/infra/serializers/event/statsbomb/deserializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def create_periods(self, raw_events):
::2
] # recorded for each team, take every other
periods = []
for start_event, end_event in zip_longest(
for (start_event, end_event) in zip_longest(
half_start_and_end_events[::2], half_start_and_end_events[1::2]
):
if (
Expand Down

0 comments on commit 8787f9c

Please sign in to comment.