From 80c541e19512064a82671f7a22ab6a937950b4aa Mon Sep 17 00:00:00 2001 From: Miwory Date: Mon, 15 Dec 2025 19:36:53 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 2 +- src/osuclient/api.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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')