Skip to content

Commit d138c39

Browse files
committed
Add CodinGamer.profile_url
1 parent d923bca commit d138c39

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

codingame/codingamer.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,11 @@ def __init__(self, state: "ConnectionState", data: dict):
142142

143143
super().__init__(state)
144144

145+
@property
146+
def profile_url(self) -> str:
147+
""":class:`str`: The URL of the CodinGamer profile."""
148+
return f"https://www.codingame.com/profile/{self.public_handle}"
149+
145150
def get_followers(
146151
self,
147152
) -> typing.Union[

docs/changelog.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
Changelog
44
=========
55

6+
v1.0.1
7+
------
8+
9+
- Add :attr:`CodinGamer.profile_url`.
10+
611
v1.0.0
712
------
813

0 commit comments

Comments
 (0)