khazhyk / osuapi

Simple osu api wrapper that I can use with both requests and aiohttp
http://osuapi.readthedocs.io/en/latest/index.html
MIT License
16 stars 8 forks source link

TeamScores missing attribute enabled_mods #39

Open JaceITG opened 3 years ago

JaceITG commented 3 years ago

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.