Фикс
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "osuclient"
|
name = "osuclient"
|
||||||
version = "0.6.1"
|
version = "0.6.2"
|
||||||
description = "Client for osu! API"
|
description = "Client for osu! API"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
authors = [
|
authors = [
|
||||||
|
|||||||
@ -139,7 +139,7 @@ class osuAPIClient(AioHTTPXClient):
|
|||||||
|
|
||||||
match req.status_code:
|
match req.status_code:
|
||||||
case st.OK:
|
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:
|
case st.NOT_FOUND:
|
||||||
raise s.Error(req.status_code, 'Not Found')
|
raise s.Error(req.status_code, 'Not Found')
|
||||||
|
|||||||
Reference in New Issue
Block a user