mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 15:45:27 +03:00
use root level top_score for very old events
This commit is contained in:
parent
ef187efd58
commit
1d00364a9d
@ -91,8 +91,9 @@ export default function SearchThumbnail({
|
|||||||
>
|
>
|
||||||
{getIconForLabel(objectLabel, "size-3 text-white")}
|
{getIconForLabel(objectLabel, "size-3 text-white")}
|
||||||
{Math.round(
|
{Math.round(
|
||||||
(searchResult.data.score ?? searchResult.data.top_score) *
|
(searchResult.data.score ??
|
||||||
100,
|
searchResult.data.top_score ??
|
||||||
|
searchResult.top_score) * 100,
|
||||||
)}
|
)}
|
||||||
%
|
%
|
||||||
</Chip>
|
</Chip>
|
||||||
|
|||||||
@ -35,6 +35,7 @@ export type SearchResult = {
|
|||||||
zones: string[];
|
zones: string[];
|
||||||
search_source: SearchSource;
|
search_source: SearchSource;
|
||||||
search_distance: number;
|
search_distance: number;
|
||||||
|
top_score: number; // for old events
|
||||||
data: {
|
data: {
|
||||||
top_score: number;
|
top_score: number;
|
||||||
score: number;
|
score: number;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user