Skip to content

Commit

Permalink
Fix false positives (#6544)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed May 19, 2023
1 parent fec1dd3 commit 4940826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frigate/http.py
Expand Up @@ -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)
Expand Down

0 comments on commit 4940826

Please sign in to comment.