diff --git a/pyproject.toml b/pyproject.toml index 193cfa7..83c2236 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "osuclient" -version = "0.6.1" +version = "0.6.2" description = "Client for osu! API" readme = "README.md" authors = [ diff --git a/src/osuclient/api.py b/src/osuclient/api.py index 77256d8..6392232 100644 --- a/src/osuclient/api.py +++ b/src/osuclient/api.py @@ -139,7 +139,7 @@ class osuAPIClient(AioHTTPXClient): match req.status_code: case st.OK: - return [s.Score.model_validate(score) for score in req.json()] + return s.UserBeatmapScores.model_validate(req.json()) case st.NOT_FOUND: raise s.Error(req.status_code, 'Not Found')