From 02c3ffbe75bd0feb0c9fe75f6b85418e862f7b1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Thu, 27 May 2021 10:50:17 +0200 Subject: [PATCH] bitarray library previously returned True or False, now return 0 and 1, and we where checking against "is True" --- server/src/uds/models/service_pool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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