tybug / ossapi

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

legacy_only seems to have no effect #85

Closed reinum closed 2 hours ago

reinum commented 2 hours ago

as the title says

in lazer scoring, a score im requesting is a B rank. ossapi returns a B rank even if legacy_only is True / 1. in classic scoring - its a C. what a shame.

last_score = api.user_scores(uid, "best", mode="osu", limit=20, legacy_only=1)[8]

uid in this case is 14590071 scoreid 3577491652

ossapi updated to the latest version

would love some help with this

tybug commented 2 hours ago

legacy_only is only for excluding lazer scores. It won't change anything about the attributes in the scores which are returned.

For retrieving attributes as they appear on stable, set api_version to something low like 20200101 when instantiating Ossapi.