From cd571750df561121a7150669c0727a4279124f32 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Fri, 19 May 2023 10:01:11 -0600 Subject: [PATCH] More fixes --- frigate/http.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frigate/http.py b/frigate/http.py index a57d6e580..df65d7797 100644 --- a/frigate/http.py +++ b/frigate/http.py @@ -198,7 +198,7 @@ def send_to_plus(id): return make_response(jsonify({"success": False, "message": message}), 404) # events from before the conversion to relative dimensions cant include annotations - if any(d > 1 for d in event.data["box"]): + if event.data.get("box") is None: include_annotation = None if event.end_time is None: @@ -254,8 +254,7 @@ def send_to_plus(id): event.save() if not include_annotation is None: - region = event.region - box = event.box + box = event.data["box"] try: current_app.plus_api.add_annotation(