tybug / ossapi

The definitive python wrapper for the osu! api.
https://tybug.github.io/ossapi/
GNU Affero General Public License v3.0
82 stars 18 forks source link

user scores returns empty list for recent #64

Closed vilewired closed 1 year ago

vilewired commented 1 year ago

Running the ossapi trying to get the most recent score sometimes returns an empty list. Does the api get the most recent game in 18 hours or does it get the most recent game in general? Because I am unsure if it doesn't work because I didn't play in the last 24 hours or if it just doesn't work all the time for some other reason

tybug commented 1 year ago

This is expected. The recent scores endpoint only returns the most recent scores in the last 24 hours. If a user has not played in a day, their recent scores will be empty.

Another way to think about it is you are retrieving the same scores that are on the "recent scores" section of your profile. If there are no scores there, the api won't return any either.

vilewired commented 1 year ago

I already thought that was the case but I wanted to make sure, thanks for the answer