bitarray library previously returned True or False, now return 0 and 1, and we where checking against "is True"

This commit is contained in:
Adolfo Gómez García 2021-05-27 10:50:17 +02:00
parent 041942b746
commit 02c3ffbe75

View File

@ -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