fix formatting

This commit is contained in:
leccelecce 2025-03-03 19:09:35 +00:00 committed by GitHub
parent 78c6ee20f2
commit 9849b724dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -236,10 +236,13 @@ class EmbeddingMaintainer(threading.Thread):
self.tracked_events[data["id"]].append(data)
# check if we're configured to send an early request after a minimum number of frames received
# check if we're configured to send an early request after a minimum number of updates received
# we don't check required zones here - probably should, but does that run the risk in this simple logic
# that the object doesn't get into the required zones until later in the event?
if self.genai_client is not None and camera_config.genai.send_triggers.after_significant_updates:
if (
self.genai_client is not None
and camera_config.genai.send_triggers.after_significant_updates
):
if (
len(self.tracked_events[data["id"]])
== camera_config.genai.send_triggers.after_significant_updates