forked from shaba/openuds
bitarray library previously returned True or False, now return 0 and 1, and we where checking against "is True"
This commit is contained in:
parent
041942b746
commit
02c3ffbe75
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user