fix: keep a calendar event visible after its date is moved (#29085)

This commit is contained in:
G30 authored and GitHub committed 2026-08-27 16:44:58 -04:00
1 parent 0afe69e1a7
commit 1c5128c4aa
3 files changed
+13 -4

No files matched your search

+2 -1
View File
@@ -533,7 +533,8 @@ class CalendarEventTable:
& (CalendarEvent.start_at < end)
& or_(
CalendarEvent.end_at.is_(None) & (CalendarEvent.start_at >= start),
CalendarEvent.end_at.isnot(None) & (CalendarEvent.end_at > start),
CalendarEvent.end_at.isnot(None)
& ((CalendarEvent.end_at > start) | (CalendarEvent.start_at >= start)),
)
),
# Recurring: fetch all (expansion in Python)