mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
Fix review items (#12126)
This commit is contained in:
parent
abc1ecfb60
commit
88046ebd15
@ -221,14 +221,13 @@ class ReviewSegmentMaintainer(threading.Thread):
|
|||||||
"""End segment."""
|
"""End segment."""
|
||||||
final_data = segment.get_data(ended=True)
|
final_data = segment.get_data(ended=True)
|
||||||
self.requestor.send_data(UPSERT_REVIEW_SEGMENT, final_data)
|
self.requestor.send_data(UPSERT_REVIEW_SEGMENT, final_data)
|
||||||
end_data = {k.name: v for k, v in final_data.items()}
|
|
||||||
self.requestor.send_data(
|
self.requestor.send_data(
|
||||||
"reviews",
|
"reviews",
|
||||||
json.dumps(
|
json.dumps(
|
||||||
{
|
{
|
||||||
"type": "end",
|
"type": "end",
|
||||||
"before": prev_data,
|
"before": {k.name: v for k, v in prev_data.items()},
|
||||||
"after": end_data,
|
"after": {k.name: v for k, v in final_data.items()},
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user