Fix delta

This commit is contained in:
Jean-Marie Favreau 2024-10-31 00:54:32 +01:00
parent 5b33777670
commit 05a5aa52d2

View File

@ -480,9 +480,10 @@ def upcoming_events(request, year=None, month=None, day=None, neighsize=1):
if month is None: if month is None:
month = now.month month = now.month
if day is None: if day is None:
day = now.day + neighsize day = now.day
day = date(year, month, day) day = date(year, month, day)
day = day + timedelta(days=neighsize)
request = EventFilter.set_default_values(request) request = EventFilter.set_default_values(request)
filter = EventFilter(request.GET, get_event_qs(request), request=request) filter = EventFilter(request.GET, get_event_qs(request), request=request)