parent
							
								
									a37af733cd
								
							
						
					
					
						commit
						ff15f380fa
					
				| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue