Skip to content

Commit d9b3072

Browse files
committed
Fixed bug with recently traded characters in "other characters" section not being properly parsed
1 parent 83e61f8 commit d9b3072

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

CHANGELOG.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ 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.5.1:
10+
11+
3.5.1 (2020-09-22)
12+
==================
13+
14+
- Fixed bug with recently traded characters in "other characters" section not being properly parsed.
15+
16+
.. v3.5.0:
17+
918
3.5.0 (2020-09-22)
1019
==================
1120

@@ -15,12 +24,16 @@ Changelog
1524
Property alias kept for backwards compatibility.
1625
- Added new attribute ``AuctionFilters.search_type``
1726

27+
.. v3.4.0:
28+
1829
3.4.0 (2020-09-19)
1930
==================
2031

2132
- Added option to only parse the listed information of an auction, to skip the rest of the parsing.
2233
- Fixed wrong type hint in ``ListedAuction`` for ``status``.
2334

35+
.. v3.3.0:
36+
2437
3.3.0 (2020-09-09)
2538
==================
2639

tibiapy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '3.5.0'
1+
__version__ = '3.5.1'
22
__author__ = 'Allan Galarza'
33

44
import logging

tibiapy/character.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,8 +567,8 @@ def _parse_other_characters(self, rows):
567567
_, *name = name.replace("\xa0", " ").split(" ")
568568
name = " ".join(name)
569569
traded = False
570-
if "(recently traded)" in name:
571-
name = name.replace("(recently traded)", "").strip()
570+
if "(traded)" in name:
571+
name = name.replace("(traded)", "").strip()
572572
traded = True
573573
main_img = cols_raw[0].find('img')
574574
main = False

0 commit comments

Comments
 (0)