fixed more stuff for ci/cd

This commit is contained in:
c-d-p
2025-04-23 01:18:32 +02:00
parent 7c3f2cde4e
commit 2f0fe386fa
35 changed files with 2 additions and 2 deletions

View File

@@ -55,11 +55,11 @@ def get_calendar_events(
query = query.filter(
or_(
# Case 1: Event has duration and overlaps
(CalendarEvent.end is not None)
(CalendarEvent.end != None) # Use SQLAlchemy comparison # noqa: E711
& (CalendarEvent.start < end)
& (CalendarEvent.end > start),
# Case 2: Event is a point event within the range
(CalendarEvent.end is None)
(CalendarEvent.end == None) # Use SQLAlchemy comparison # noqa: E711
& (CalendarEvent.start >= start)
& (CalendarEvent.start < end),
)