From 88046ebd152b836aa424ef16d2eef0e3e44cd348 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sun, 23 Jun 2024 17:52:02 -0600 Subject: [PATCH] Fix review items (#12126) --- frigate/review/maintainer.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frigate/review/maintainer.py b/frigate/review/maintainer.py index 55b374779..5a54475b5 100644 --- a/frigate/review/maintainer.py +++ b/frigate/review/maintainer.py @@ -221,14 +221,13 @@ class ReviewSegmentMaintainer(threading.Thread): """End segment.""" final_data = segment.get_data(ended=True) 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( "reviews", json.dumps( { "type": "end", - "before": prev_data, - "after": end_data, + "before": {k.name: v for k, v in prev_data.items()}, + "after": {k.name: v for k, v in final_data.items()}, } ), )