mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 18:55:23 +03:00
Fix / cleanup
This commit is contained in:
parent
f47aa85b0d
commit
915f59aa86
@ -386,13 +386,13 @@ def set_sub_label(id):
|
|||||||
400,
|
400,
|
||||||
)
|
)
|
||||||
|
|
||||||
if new_score > 1.0 or new_score < 0:
|
if new_score is not None and (new_score > 1.0 or new_score < 0):
|
||||||
return make_response(
|
return make_response(
|
||||||
jsonify(
|
jsonify(
|
||||||
{
|
{
|
||||||
"success": False,
|
"success": False,
|
||||||
"message": new_score
|
"message": new_score
|
||||||
+ " does not fit within the expected bounds 0 < score < 1.0",
|
+ " does not fit within the expected bounds 0 <= score <= 1.0",
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
400,
|
400,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user