osu-api icon indicating copy to clipboard operation
osu-api copied to clipboard

Number of ranked maps a user has a score on in /get_user

Open CloudMax94 opened this issue 10 years ago • 3 comments

I want to be able to see how many ranked maps a user has a score on. This in turn would allow me to easily calculate the Bonus PP.

CloudMax94 avatar Feb 15 '16 10:02 CloudMax94

Have no plans on adding this as it is not cached anywhere. Please use /get_scores for now.

peppy avatar Feb 15 '16 10:02 peppy

@peppy How do you calculate bonus pp if it's not cached anywhere and pp is calculated realtime?

LeaPhant avatar Oct 22 '16 01:10 LeaPhant

For calculating pp all scores of a given user have to be loaded anyways, so you implicitly know their amount. That has to only be performed once a user achieves a new high-score on some map, though, so it's rare enough to not be a performance issue. If we exposed this publically via the API, then it could get queried way more often than needed for real-time pp.

Tom94 avatar Oct 22 '16 04:10 Tom94