Skip to content

Commit 0857aa4

Browse files
committed
Fixed bug in Event Calendar parsing.
1 parent e6b9666 commit 0857aa4

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

CHANGELOG.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ 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.7:
10+
11+
3.5.7 (2020-12-04)
12+
==================
13+
14+
- Fixed bug in Event Calendar parsing.
15+
16+
917
.. v3.5.6:
1018
1119
3.5.6 (2020-11-10)

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.6'
1+
__version__ = '3.5.7'
22
__author__ = 'Allan Galarza'
33

44
import logging

tibiapy/event.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ def from_content(cls, content):
143143
# The last cells may belong to the last month
144144
if day < ongoing_day:
145145
month += 1
146+
if month > 12:
147+
month = 1
148+
year += 1
146149
ongoing_day = day + 1
147150
today_events = []
148151
popup_spans = day_cell.find_all('span', attrs={"class": "HelperDivIndicator"})

0 commit comments

Comments
 (0)