Increase maximum event sub_label length to 100 characters (#6350)

* Increase maximum sub label length to 100 characters and update corresponding fields in models and API

* black format...
This commit is contained in:
Sergey Krashevich
2023-05-05 01:59:44 +03:00
committed by GitHub
parent 2add675d42
commit 03b45c153b
4 changed files with 16 additions and 4 deletions

View File

@@ -375,13 +375,13 @@ def set_sub_label(id):
else:
new_sub_label = None
if new_sub_label and len(new_sub_label) > 20:
if new_sub_label and len(new_sub_label) > 100:
return make_response(
jsonify(
{
"success": False,
"message": new_sub_label
+ " exceeds the 20 character limit for sub_label",
+ " exceeds the 100 character limit for sub_label",
}
),
400,