From 4940826011ee8dc515e4b70f771f3d626d941cb2 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Fri, 19 May 2023 13:26:19 -0600 Subject: [PATCH] Fix false positives (#6544) --- frigate/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/http.py b/frigate/http.py index df65d7797..de9fd033c 100644 --- a/frigate/http.py +++ b/frigate/http.py @@ -295,7 +295,7 @@ def false_positive(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.box): + if event.data.get("box") is None: message = f"Events prior to 0.13 cannot be submitted as false positives" logger.error(message) return make_response(jsonify({"success": False, "message": message}), 400)