Skip to content

Commit abe28ef

Browse files
committed
Fixed bug in events parsing
1 parent 40ea694 commit abe28ef

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

CHANGELOG.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ 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.6.2:
10+
11+
3.6.2 (2021-01-01)
12+
==================
13+
14+
- Fixed bug in Event Calendar parsing.
15+
916
.. v3.6.1:
1017
1118
3.6.1 (2020-12-28)

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def setup(app):
2929
# -- Project information -----------------------------------------------------
3030

3131
project = 'Tibia.py'
32-
copyright = '2020, Allan Galarza'
32+
copyright = '2021, Allan Galarza'
3333
author = 'Allan Galarza'
3434

3535
# The short X.Y version

tibiapy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '3.6.1'
1+
__version__ = '3.6.2'
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
@@ -146,6 +146,9 @@ def from_content(cls, content):
146146
if month > 12:
147147
month = 1
148148
year += 1
149+
if month < 1:
150+
month = 12
151+
year -= 1
149152
ongoing_day = day + 1
150153
today_events = []
151154
popup_spans = day_cell.find_all('span', attrs={"class": "HelperDivIndicator"})

0 commit comments

Comments
 (0)