Фикс
This commit is contained in:
@ -47,9 +47,16 @@ class osuAPIClient(AioHTTPXClient):
|
||||
case _:
|
||||
raise s.Error(500, 'Internal Server Error')
|
||||
|
||||
async def get_score(self, access_token: str, mode: str, score_id: int):
|
||||
async def get_score(
|
||||
self,
|
||||
access_token: str,
|
||||
score_id: int,
|
||||
mode: Literal['fruits', 'mania', 'osu', 'taiko'] | None = None,
|
||||
):
|
||||
url = f'/scores/{mode}/{score_id}' if mode else f'/scores/{score_id}'
|
||||
|
||||
req = await self.get(
|
||||
f'/scores/{mode}/{score_id}',
|
||||
url,
|
||||
headers=self.clean_dict(
|
||||
{
|
||||
'Authorization': f'Bearer {access_token}',
|
||||
|
||||
Reference in New Issue
Block a user