Фикс метода get_score

This commit is contained in:
2025-11-26 14:39:46 +03:00
parent 34c0e3ca9f
commit d80b5da7be
2 changed files with 49 additions and 42 deletions

View File

@ -47,9 +47,9 @@ class osuAPIClient(AioHTTPXClient):
case _:
raise s.Error(500, 'Internal Server Error')
async def get_score(self, access_token: str, score_id: int):
async def get_score(self, access_token: str, mode: str, score_id: int):
req = await self.get(
f'/scores/{score_id}',
f'/scores/{mode}/{score_id}',
headers=self.clean_dict(
{
'Authorization': f'Bearer {access_token}',