mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-02-14 00:17:05 +01:00
Fix thumbnail failure (#13634)
* Fix thumbnail failure * Formatting * Fix logic
This commit is contained in:
parent
17901fcfef
commit
8be139d4d1
@ -770,9 +770,15 @@ class CameraState:
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
# if the object's thumbnail is not from the current frame
|
# if we don't have access to the current frame or
|
||||||
if obj.false_positive or obj.thumbnail_data["frame_time"] != frame_time:
|
# if the object's thumbnail is not from the current frame, skip
|
||||||
|
if (
|
||||||
|
current_frame is None
|
||||||
|
or obj.false_positive
|
||||||
|
or obj.thumbnail_data["frame_time"] != frame_time
|
||||||
|
):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if object_type in self.best_objects:
|
if object_type in self.best_objects:
|
||||||
current_best = self.best_objects[object_type]
|
current_best = self.best_objects[object_type]
|
||||||
now = datetime.datetime.now().timestamp()
|
now = datetime.datetime.now().timestamp()
|
||||||
|
Loading…
Reference in New Issue
Block a user