diff --git a/server/src/uds/models/service_pool.py b/server/src/uds/models/service_pool.py index c7d8aad4..7a0981ff 100644 --- a/server/src/uds/models/service_pool.py +++ b/server/src/uds/models/service_pool.py @@ -256,7 +256,7 @@ class ServicePool(UUIDModel, TaggingMixin): # type: ignore access = self.fallbackAccess # Let's see if we can access by current datetime for ac in sorted(self.calendarAccess.all(), key=lambda x:x.priority): - if CalendarChecker(ac.calendar).check(chkDateTime) is True: + if CalendarChecker(ac.calendar).check(chkDateTime): access = ac.access break # Stops on first rule match found