diff --git a/agenda/data.py b/agenda/data.py index 3e3efa0..65a7731 100644 --- a/agenda/data.py +++ b/agenda/data.py @@ -313,7 +313,9 @@ def get_busy_events( busy_events = [ e for e in sorted(events, key=lambda e: e.as_date) - if e.as_date > today and e.as_date < next_year and busy_event(e) + if (e.as_date >= today or (e.end_date and e.end_as_date >= today)) + and e.as_date < next_year + and busy_event(e) ] return busy_events