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")}
|
||||
{Math.round(
|
||||
(searchResult.data.score ?? searchResult.data.top_score) *
|
||||
100,
|
||||
(searchResult.data.score ??
|
||||
searchResult.data.top_score ??
|
||||
searchResult.top_score) * 100,
|
||||
)}
|
||||
%
|
||||
</Chip>
|
||||
|
||||
@ -35,6 +35,7 @@ export type SearchResult = {
|
||||
zones: string[];
|
||||
search_source: SearchSource;
|
||||
search_distance: number;
|
||||
top_score: number; // for old events
|
||||
data: {
|
||||
top_score: number;
|
||||
score: number;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user