fix wrong code

master
Aevann 2024-03-03 02:56:18 +02:00
parent 2676436493
commit fd9398f049
1 changed files with 2 additions and 2 deletions

View File

@ -969,8 +969,8 @@ def process_settings_plaintext(value, current, length, default_value):
if not value: if not value:
return default_value return default_value
if len(value) > 100: if len(value) > length:
abort(400, "The value you entered exceeds the character limit (100 characters)") abort(400, f"The value you entered exceeds the character limit ({length} characters)")
if value == current: if value == current:
abort(400, "You didn't change anything!") abort(400, "You didn't change anything!")