Skip to content

Commit a43f582

Browse files
Automatically update Python SDK
1 parent cebf5d7 commit a43f582

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "trophy"
7-
version = "1.0.25"
7+
version = "1.0.26"
88
description = "A Python library for the Trophy API"
99
license = {text = "MIT"}
1010
readme = "README.md"

trophy/users/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ def points_event_summary(
11331133
raise ApiError(status_code=_response.status_code, body=_response.text)
11341134
raise ApiError(status_code=_response.status_code, body=_response_json)
11351135

1136-
def leaderboards(
1136+
def leaderboard(
11371137
self,
11381138
id: str,
11391139
key: str,
@@ -1170,7 +1170,7 @@ def leaderboards(
11701170
client = TrophyApi(
11711171
api_key="YOUR_API_KEY",
11721172
)
1173-
client.users.leaderboards(
1173+
client.users.leaderboard(
11741174
id="user-123",
11751175
key="weekly-words",
11761176
run="2025-01-15",
@@ -2414,7 +2414,7 @@ async def main() -> None:
24142414
raise ApiError(status_code=_response.status_code, body=_response.text)
24152415
raise ApiError(status_code=_response.status_code, body=_response_json)
24162416

2417-
async def leaderboards(
2417+
async def leaderboard(
24182418
self,
24192419
id: str,
24202420
key: str,
@@ -2456,7 +2456,7 @@ async def leaderboards(
24562456
24572457
24582458
async def main() -> None:
2459-
await client.users.leaderboards(
2459+
await client.users.leaderboard(
24602460
id="user-123",
24612461
key="weekly-words",
24622462
run="2025-01-15",

0 commit comments

Comments
 (0)