Skip to content

Commit 692ccc3

Browse files
committed
Fixed bug with character titles
1 parent fbb2555 commit 692ccc3

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

CHANGELOG.rst

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,24 @@ 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+
.. v3.0.3:
10+
11+
3.0.3 (2020-07-28)
12+
==================
13+
14+
- Fixed bug with character title being parsed incorrectly when the character has no title selected and a single unlocked title.
15+
916
.. v3.0.2:
1017
11-
3.0.2 (2020-07-134)
18+
3.0.2 (2020-07-14)
1219
==================
1320

1421
- Fixed values being mapped incorrectly for highscores.
1522
- ``ExpHighscoresEntry`` is now removed.
1623

1724
.. v3.0.1:
1825
19-
3.0.1 (2020-07-134)
26+
3.0.1 (2020-07-14)
2027
==================
2128

2229
- ``Highscores.world`` is now ``None`` when the highscores are for all worlds.

tibiapy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from tibiapy.world import *
1717
from tibiapy.client import *
1818

19-
__version__ = '3.0.2'
19+
__version__ = '3.0.3'
2020

2121
from logging import NullHandler
2222

tibiapy/character.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
house_regexp = re.compile(r'paid until (.*)')
2929
guild_regexp = re.compile(r'([\s\w()]+)\sof the\s(.+)')
3030

31-
title_regexp = re.compile(r'(.*)\((\d+) titles unlocked\)')
31+
title_regexp = re.compile(r'(.*)\((\d+) titles? unlocked\)')
3232
badge_popup_regexp = re.compile(r"\$\(this\),\s+'([^']+)',\s+'([^']+)',")
3333

3434
__all__ = (

0 commit comments

Comments
 (0)