mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 10:45:21 +03:00
Simplify if statement
This commit is contained in:
parent
23f1b51455
commit
ba3c7f59e5
@ -179,7 +179,7 @@ class AudioEventMaintainer(threading.Thread):
|
||||
self.expire_detections()
|
||||
|
||||
def handle_detection(self, label: str, score: float) -> None:
|
||||
if self.detections.get(label) is not None:
|
||||
if self.detections.get(label):
|
||||
self.detections[label][
|
||||
"last_detection"
|
||||
] = datetime.datetime.now().timestamp()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user