Show more future events
This commit is contained in:
parent
233d4e7fb7
commit
80916ae679
|
@ -360,7 +360,7 @@ async def get_data(
|
||||||
two_weeks_ago = today - timedelta(weeks=2)
|
two_weeks_ago = today - timedelta(weeks=2)
|
||||||
last_week = today - timedelta(weeks=1)
|
last_week = today - timedelta(weeks=1)
|
||||||
last_year = today - timedelta(days=365)
|
last_year = today - timedelta(days=365)
|
||||||
next_year = today + timedelta(days=365)
|
next_year = today + timedelta(days=2 * 365)
|
||||||
|
|
||||||
minus_365 = now - timedelta(days=365)
|
minus_365 = now - timedelta(days=365)
|
||||||
plus_365 = now + timedelta(days=365)
|
plus_365 = now + timedelta(days=365)
|
||||||
|
@ -478,9 +478,7 @@ async def get_data(
|
||||||
busy_events = [
|
busy_events = [
|
||||||
e
|
e
|
||||||
for e in sorted(events, key=lambda e: e.as_date)
|
for e in sorted(events, key=lambda e: e.as_date)
|
||||||
if e.as_date > today
|
if e.as_date > today and e.as_date < next_year and busy_event(e)
|
||||||
and e.as_date < (today + timedelta(days=365 * 2))
|
|
||||||
and busy_event(e)
|
|
||||||
]
|
]
|
||||||
|
|
||||||
gaps = find_gaps(busy_events)
|
gaps = find_gaps(busy_events)
|
||||||
|
|
Loading…
Reference in a new issue