Skip to content

Commit 78b355d

Browse files
committed
Updated changelog and version
- Added examples to get_tibia_url
1 parent 3d519d6 commit 78b355d

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

CHANGELOG.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ Changelog
66
Due to this library relying on external content, older versions are not guaranteed to work.
77
Try to always use the latest version.
88

9+
.. _v2.5.0:
10+
11+
2.5.0 (2020-05-22)
12+
==================
13+
- Added parsing of Tournaments and Tournament Leaderboards.
14+
- Fixed parsing errors with characters that had deaths by killers with "and" in their name.
15+
916
.. _v2.4.3:
1017

1118
2.4.3 (2020-04-22)

tibiapy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from tibiapy.tournament import *
1515
from tibiapy.client import *
1616

17-
__version__ = '2.4.3'
17+
__version__ = '2.5.0'
1818

1919
from logging import NullHandler
2020

tibiapy/utils.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,17 @@ def get_tibia_url(section, subtopic, **kwargs):
3030
-------
3131
:class:`str`
3232
The generated Tibia.com URL.
33+
34+
Examples
35+
--------
36+
>>> get_tibia_url("community", "houses", page="view", houseid=55302, world="Gladera")
37+
https://www.tibia.com/community/?subtopic=houses&page=view&houseid=55302&world=Gladera
38+
39+
You can also build a dictionary and pass it like:
40+
41+
>>> params = {'world': "Gladera", }
42+
>>> get_tibia_url("community", "worlds", **params)
43+
https://www.tibia.com/community/?subtopic=worlds&world=Gladera
3344
"""
3445
url = "https://www.tibia.com/%s/?" % section
3546
params = OrderedDict(subtopic=subtopic)

0 commit comments

Comments
 (0)