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

TeamScores missing attribute enabled_mods #39

Open
JaceITG opened this issue Jan 11, 2021 · 0 comments
Open

TeamScores missing attribute enabled_mods #39

JaceITG opened this issue Jan 11, 2021 · 0 comments

Comments

@JaceITG
Copy link
Contributor

JaceITG commented Jan 11, 2021

When retrieving user scores using api.get_match(match_id), a warning is emitted indicating a missing attribute enabled_mods in the TeamScore object.

For example, I initialized api = OsuApi(API_KEY, connector=ReqConnector()) and then called match = api.get_match(73235514)

The following warnings were output:

C:\Users\....: Warning: Unknown attribute enabled_mods ("0") in API response for type <class 
'osuapi.model.TeamScore'>
  warnings.warn("Unknown attribute {} (\"{}\") in API response for type {}".format(k, v, type(self)), Warning)
C:\Users\....: Warning: Unknown attribute enabled_mods ("8") in API response for type <class 
'osuapi.model.TeamScore'>
  warnings.warn("Unknown attribute {} (\"{}\") in API response for type {}".format(k, v, type(self)), Warning)
C:\Users\....: Warning: Unknown attribute enabled_mods ("2") in API response for type <class 
'osuapi.model.TeamScore'>
  warnings.warn("Unknown attribute {} (\"{}\") in API response for type {}".format(k, v, type(self)), Warning)

As a result of this, I cannot find a way to get the mods used by each player in a Game's scores when freemod is enabled in multiplayer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants