osuapi icon indicating copy to clipboard operation
osuapi copied to clipboard

TeamScores missing attribute enabled_mods

Open JaceITG opened this issue 5 years ago • 0 comments

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.

JaceITG avatar Jan 11 '21 21:01 JaceITG