Фикс
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "osuclient"
|
||||
version = "0.6.1"
|
||||
version = "0.6.2"
|
||||
description = "Client for osu! API"
|
||||
readme = "README.md"
|
||||
authors = [
|
||||
|
||||
@ -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')
|
||||
|
||||
Reference in New Issue
Block a user