Skip to content

Commit

Permalink
Fixed bug in guild names being parsed with Non-Breaking spaces instea…
Browse files Browse the repository at this point in the history
…d of a regular space.
  • Loading branch information
Galarzaa90 committed Jan 15, 2021
1 parent abe28ef commit 67d3ddb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ Changelog
Due to this library relying on external content, older versions are not guaranteed to work.
Try to always use the latest version.

.. v3.6.3:
3.6.3 (2021-01-14)
==================

- Fixed bug in guild names being parsed with Non-Breaking spaces instead of a regular space.

.. v3.6.2:
3.6.2 (2021-01-01)
Expand Down
2 changes: 1 addition & 1 deletion tibiapy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '3.6.2'
__version__ = '3.6.3'
__author__ = 'Allan Galarza'

import logging
Expand Down
2 changes: 1 addition & 1 deletion tibiapy/character.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ def _parse_character_information(self, rows):
if field == "guild_membership":
guild_link = cols_raw[1].find('a')
rank = value.split("of the")[0]
char["guild_membership"] = GuildMembership(guild_link.text, rank.strip())
char["guild_membership"] = GuildMembership(guild_link.text.replace("\xa0", " "), rank.strip())

continue
if field in int_rows:
Expand Down

0 comments on commit 67d3ddb

Please sign in to comment.