[agendadulibre] fix bug on day number during pagination
This commit is contained in:
parent
aab2e341f9
commit
9275de4bdb
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ class EventListPage(HTMLPage):
|
||||||
def next_page(self):
|
def next_page(self):
|
||||||
m = re.match('.*/events\?start_date=(\d{4})-(\d{2})-(\d{2})(®ion=.*)?', self.page.url)
|
m = re.match('.*/events\?start_date=(\d{4})-(\d{2})-(\d{2})(®ion=.*)?', self.page.url)
|
||||||
if m:
|
if m:
|
||||||
start = date(year=int(m.group(1)), month=int(m.group(2)), day=int(m.group(3)))
|
start = date(year=int(m.group(1)), month=int(m.group(2)), day=1)
|
||||||
region = m.group(4) if m.group(4) else ''
|
region = m.group(4) if m.group(4) else ''
|
||||||
try:
|
try:
|
||||||
next_month = start.replace(month=start.month + 1)
|
next_month = start.replace(month=start.month + 1)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue