Fix typo for bug where identical images are sent to GenAI

This commit is contained in:
Giorgio Ughini 2024-12-17 14:23:38 +01:00
parent 0a6e396217
commit aa2821ed21

View File

@ -221,7 +221,7 @@ class EmbeddingMaintainer(threading.Thread):
[snapshot_image]
if event.has_snapshot and camera_config.genai.use_snapshot
else (
[thumbnail for data in self.tracked_events[event_id]]
[data["thumbnail"] for data in self.tracked_events[event_id]]
if len(self.tracked_events.get(event_id, [])) > 0
else [thumbnail]
)