Fixed syntax error

This commit is contained in:
Maximilian Giller 2021-12-03 21:11:57 +01:00
parent 5e1e3241cb
commit 5a249f7247

View file

@ -158,7 +158,7 @@ class PeopleCounter ():
cb(countChange, self.directionState)
def isDirectionTriggered(self, direction: Directions) -> bool:
return len(self.directionState[direction]]) > 0 and self.directionState[direction][-1][END_TIME] is None
return len(self.directionState[direction]) > 0 and self.directionState[direction][-1][END_TIME] is None
def updateState(self, direction: Directions, triggered: bool) -> bool:
previouslyTriggered = False