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 csgo RankType and correct enumeration #441

Merged
merged 4 commits into from
Jan 11, 2024
Merged

Conversation

schrotle
Copy link
Contributor

Summary

Fixing correct Ranking and adding RankType like CS2 (Premier), Matchmaking (CSGO - old), Dangerzone and Wingman.

See above

Checklist

  • [x ] If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • This PR fixes an issue.
  • [x ] This PR adds something new (e.g. new method or parameters).
  • This PR is a breaking change (e.g. methods or parameters removed/renamed)
  • This PR is not a code change (e.g. documentation, README, ...)

Comment on lines 235 to 237
self.rank = Rank(proto.rank_id) if proto.rank_type_id != 10 else proto.rank_id
self.id = proto.rank_type_id
self.rank_type = RankType(proto.rank_type_id)
Copy link
Owner

Choose a reason for hiding this comment

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

please can you change this to use .try_value incase valve add new ones

steam/ext/csgo/models.py Outdated Show resolved Hide resolved
@Gobot1234
Copy link
Owner

Thank you for this

@Gobot1234 Gobot1234 merged commit de3ede3 into Gobot1234:main Jan 11, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants