Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tackle as duel type and recognize StatsPerform challenge event #242

Merged
merged 3 commits into from
Dec 13, 2023

Conversation

DriesDeprest
Copy link
Contributor

No description provided.

Copy link
Collaborator

@JanVanHaaren JanVanHaaren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code changes look good to me. Thanks!

In the future, it would be convenient if you added a brief description explaining the intentions behind the pull request.

if type_id == EVENT_TYPE_TACKLE:
qualifiers.extend([DuelQualifier(value=DuelType.GROUND)])
elif type_id == EVENT_TYPE_AERIAL:
if type_id in [EVENT_TYPE_TACKLE, EVENT_TYPE_CHALLENGE]:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For local code consistency, I'd use a tuple instead of a list.

type_id in (EVENT_TYPE_TACKLE, EVENT_TYPE_CHALLENGE)

Copy link
Collaborator

@JanVanHaaren JanVanHaaren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@koenvo koenvo merged commit c82cd65 into PySport:master Dec 13, 2023
19 checks passed
@koenvo koenvo added this to the 3.14 - Pi milestone Dec 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants