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

Allow filtering by ammotype in gun stats tool #61599

Merged
merged 1 commit into from
Oct 11, 2022

Conversation

anothersimulacrum
Copy link
Member

Summary

None

Purpose of change

Would be nice to be filter by ammo, huh? I made this change months ago and it's been sitting around since, may as well push it back.

Describe the solution

Allow specifying an 'ammo' string, and if an entry would be printed that does not contain this ammo string within their ammo field, skip that entry.

Describe alternatives you've considered

Making this fancier. Too lazy.

Testing

flake8 tools/json_tools/gun_stats.py
tools/json_tools/gun_stats.py -a 762R data/json
#61598 (comment)

Also, remove an unnecesary noisy print statement.
@github-actions github-actions bot added [Python] Code made in Python Code: Tooling Tooling that is not part of the main game but is part of the repo. json-styled JSON lint passed, label assigned by github actions astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels Oct 10, 2022
@dseguin dseguin merged commit cab78ea into CleverRaven:master Oct 11, 2022
@anothersimulacrum anothersimulacrum deleted the gun-stats-filter branch October 12, 2022 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions Code: Tooling Tooling that is not part of the main game but is part of the repo. json-styled JSON lint passed, label assigned by github actions [Python] Code made in Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants