Skip to content

Commit e33f0b9

Browse files
committed
Fixed worlds not being parsed correctly again due to tournament worlds order changing. After this fix,
the order should not matter anymore
1 parent 9383ef3 commit e33f0b9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

CHANGELOG.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ the order should not matter anymore.
1919
==================
2020
- Fixed parsing bug on characters, returning an incorrect exception when a character doesn't exist.
2121

22-
2322
.. v4.1.4
2423
2524
4.1.4 (2021-06-17)

tibiapy/__init__.py

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

44
import logging

tibiapy/world.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,9 @@ def from_content(cls, content):
466466
parsed_content = parse_tibiacom_content(content)
467467
world_overview = WorldOverview()
468468
try:
469-
records_table, *tables = parsed_content.find_all("table", {"class": "TableContent"})
470-
m = record_regexp.search(records_table.text)
469+
record_table, *tables \
470+
= parsed_content.find_all("table", {"class": "TableContent"})
471+
m = record_regexp.search(record_table.text)
471472
world_overview.record_count = parse_integer(m.group("count"))
472473
world_overview.record_date = parse_tibia_datetime(m.group("date"))
473474
world_overview._parse_worlds_tables(tables)

0 commit comments

Comments
 (0)